b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/nsswitch/wins.c |
2 | +++ b/nsswitch/wins.c | ||||
3 | @@ -40,6 +40,14 @@ static pthread_mutex_t wins_nss_mutex = | ||||
4 | #define INADDRSZ 4 | ||||
5 | #endif | ||||
6 | |||||
7 | +#ifndef NETDB_INTERNAL | ||||
8 | +#define NETDB_INTERNAL -1 | ||||
9 | +#endif | ||||
10 | + | ||||
11 | +#ifndef NETDB_SUCCESS | ||||
12 | +#define NETDB_SUCCESS 0 | ||||
13 | +#endif | ||||
14 | + | ||||
15 | NSS_STATUS _nss_wins_gethostbyname_r(const char *hostname, | ||||
16 | struct hostent *he, | ||||
17 | char *buffer, |