blob: 2036da4fd7b18d21bf94e0931dd10449ef966746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Bug: https://bugs.gentoo.org/716272
--- a/nss/hosts.c
+++ b/nss/hosts.c
@@ -49,6 +49,9 @@
*h_errnop = NO_RECOVERY; \
return NSS_STATUS_UNAVAIL;
+#ifndef NETDB_INTERNAL
+#define NETDB_INTERNAL -1
+#endif
#undef ERROR_OUT_BUFERROR
#define ERROR_OUT_BUFERROR(fp) \
*errnop = ERANGE; \
--- a/nss/networks.c
+++ b/nss/networks.c
@@ -49,6 +49,9 @@
*h_errnop = NO_RECOVERY; \
return NSS_STATUS_UNAVAIL;
+#ifndef NETDB_INTERNAL
+#define NETDB_INTERNAL -1
+#endif
#undef ERROR_OUT_BUFERROR
#define ERROR_OUT_BUFERROR(fp) \
*errnop = ERANGE; \
|