diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h index ead90b515..f49a94379 100644 --- a/winsup/cygwin/include/netdb.h +++ b/winsup/cygwin/include/netdb.h @@ -71,7 +71,7 @@ extern "C" { /* Different from the linux versions - note the shorts.. */ struct hostent { - char *h_name; /* official name of host */ + const char *h_name; /* official name of host */ char **h_aliases; /* alias list */ short h_addrtype; /* host address type */ short h_length; /* length of address */