diff options
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h index adde2c5e..d096c781 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -115,6 +115,9 @@ struct protoent *getprotobynumber (int); || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) struct hostent *gethostbyname (const char *); struct hostent *gethostbyaddr (const void *, socklen_t, int); +#ifdef __GNUC__ +__attribute__((const)) +#endif int *__h_errno_location(void); #define h_errno (*__h_errno_location()) #define HOST_NOT_FOUND 1 |