X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnetdb.h;h=d096c78183b5609c4e5932adbd8d6ed8e75f168e;hb=8acc688548b27151c45ee8a80f3a0b75f4a761c0;hp=adde2c5e54f3dad1ae8255e89f43ee07d1d9d1ec;hpb=5f7efb87a28a311ad377dd26adf53715dedb096d;p=musl 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