X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=include%2Fnetdb.h;h=3af065e2b6b5e8a796a06df7fcaa28738ab78e25;hb=d64148a8743ad9ed0594091d2ff141b1e9334d4b;hp=adde2c5e54f3dad1ae8255e89f43ee07d1d9d1ec;hpb=5f7efb87a28a311ad377dd26adf53715dedb096d;p=musl diff --git a/include/netdb.h b/include/netdb.h index adde2c5e..3af065e2 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -44,6 +44,7 @@ struct addrinfo { #define EAI_NONAME -2 #define EAI_AGAIN -3 #define EAI_FAIL -4 +#define EAI_NODATA -5 #define EAI_FAMILY -6 #define EAI_SOCKTYPE -7 #define EAI_SERVICE -8 @@ -115,6 +116,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