Expose gethostbyname()

This commit is contained in:
Justine Tunney 2024-07-25 19:21:35 -07:00
parent c8e25d811c
commit edd5e2c8e3
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -102,9 +102,6 @@ struct protoent *getprotobynumber (int);
#define NI_MAXHOST 255
#define NI_MAXSERV 32
#if defined(_COSMO_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \
|| (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \
|| (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700)
struct hostent *gethostbyname (const char *);
struct hostent *gethostbyaddr (const void *, uint32_t, int);
errno_t *__h_errno_location(void) dontthrow pureconst;
@ -114,7 +111,6 @@ errno_t *__h_errno_location(void) dontthrow pureconst;
#define NO_RECOVERY 3
#define NO_DATA 4
#define NO_ADDRESS NO_DATA
#endif
#if defined(_COSMO_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
void herror(const char *);