X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fnetdb.h;h=d096c78183b5609c4e5932adbd8d6ed8e75f168e;hb=eea841e6534b014b820fcd3c99e8ac4a0cb2412e;hp=967ca211f9dabcf5ae2929d1a999bd9b0a2b15b1;hpb=befa5866ee30d09c0c96e88af2eabff5911342ea;p=musl diff --git a/include/netdb.h b/include/netdb.h index 967ca211..d096c781 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -24,8 +24,6 @@ struct addrinfo { struct addrinfo *ai_next; }; -#define IPPORT_RESERVED 1024 - #define AI_PASSIVE 0x01 #define AI_CANONNAME 0x02 #define AI_NUMERICHOST 0x04 @@ -117,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