aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss-pam-ldapd/10-define-netdb-internal.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nss-pam-ldapd/10-define-netdb-internal.patch')
-rw-r--r--main/nss-pam-ldapd/10-define-netdb-internal.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/nss-pam-ldapd/10-define-netdb-internal.patch b/main/nss-pam-ldapd/10-define-netdb-internal.patch
new file mode 100644
index 0000000000..039753c7c8
--- /dev/null
+++ b/main/nss-pam-ldapd/10-define-netdb-internal.patch
@@ -0,0 +1,15 @@
+Author: Nick O'Connor <nick@o-connor.io>
+Summary: Fixes musl compatibility
+----
+--- a/configure.ac.orig
++++ b/configure.ac
+@@ -499,6 +499,9 @@
+ #include <nsswitch.h>
+ #endif])
+
++ # if not defined, define NETDB_INTERNAL
++ AC_CHECK_DECL([NETDB_INTERNAL],,[AC_DEFINE([NETDB_INTERNAL], [-1], "define NETDB_INTERNAL")])
++
+ # check if struct nss_XbyY_args has a returnlen attribute
+ AC_CHECK_MEMBERS([struct nss_XbyY_args.returnlen],,, [[
+ #ifdef HAVE_NSS_H \ No newline at end of file