aports/main/nss-pam-ldapd/10-define-netdb-internal.patch
2020-10-23 08:56:49 +00:00

15 lines
No EOL
475 B
Diff

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