gentoo/sys-auth/nss-pam-ldapd/files/nss-pam-ldapd-0.9.12-netdb-defines.patch
Cristian Othón Martínez Vera 090dc863c6
sys-auth/nss-pam-ldapd: fix musl build
* add sys-libs/musl-nscd as dependency for musl, to fix ```unknown type name nss_status_t``` error
* patch for missing NETDB_INTERNAL

Closes: https://bugs.gentoo.org/713612
Closes: https://bugs.gentoo.org/716272
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Signed-off-by: Sam James <sam@gentoo.org>
2023-03-20 05:29:33 +00:00

27 lines
861 B
Diff

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; \