aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss-pam-ldapd/10-define-netdb-internal.patch
blob: 039753c7c814b964b81b6bba111f3f5e27805bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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