1fix musl build failures 2 3Missing _PATH_HOSTS and some NETDB defines when musl is enabled. 4 5These are work arounds for now while we figure out where the real fix should reside (musl, gcompact, sssd): 6 7./sssd-2.5.1/src/providers/fail_over.c:1199:19: error: '_PATH_HOSTS' undeclared (first use in this function) 8| 1199 | _PATH_HOSTS); 9| | ^~~~~~~~~~~ 10 11and 12 13i./sssd-2.5.1/src/sss_client/nss_ipnetworks.c:415:21: error: 'NETDB_INTERNAL' undeclared (first use in this function) 14| 415 | *h_errnop = NETDB_INTERNAL; 15 16 17Upstream-Status: Pending 18Signed-off-by: Armin Kuster <akuster808@gmail.com> 19 20Index: sssd-2.5.1/src/providers/fail_over.c 21=================================================================== 22--- sssd-2.5.1.orig/src/providers/fail_over.c 23+++ sssd-2.5.1/src/providers/fail_over.c 24@@ -31,6 +31,10 @@ 25 #include <talloc.h> 26 #include <netdb.h> 27 28+#if !defined(_PATH_HOSTS) 29+#define _PATH_HOSTS "/etc/hosts" 30+#endif 31+ 32 #include "util/dlinklist.h" 33 #include "util/refcount.h" 34 #include "util/util.h" 35Index: sssd-2.5.1/src/sss_client/sss_cli.h 36=================================================================== 37--- sssd-2.5.1.orig/src/sss_client/sss_cli.h 38+++ sssd-2.5.1/src/sss_client/sss_cli.h 39@@ -44,6 +44,14 @@ typedef int errno_t; 40 #define EOK 0 41 #endif 42 43+#ifndef NETDB_INTERNAL 44+# define NETDB_INTERNAL (-1) 45+#endif 46+ 47+#ifndef NETDB_SUCCESS 48+# define NETDB_SUCCESS (0) 49+#endif 50+ 51 #define SSS_NSS_PROTOCOL_VERSION 1 52 #define SSS_PAM_PROTOCOL_VERSION 3 53 #define SSS_SUDO_PROTOCOL_VERSION 1 54