blob: a11f8d15c5877e435f9d4beebcb65cdee468b90c [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- 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,