packages/net/samba4/patches/010-samba-4-12-fix-musl_missing__nss_buflen_passwd.patch

14 lines
290 B
Diff
Raw Normal View History

--- a/lib/util/util_paths.c
+++ b/lib/util/util_paths.c
@@ -28,6 +28,10 @@
#include "system/passwd.h"
#include "system/filesys.h"
+#if !defined(__GLIBC__)
+ #define NSS_BUFLEN_PASSWD 1024
+#endif
+
/**
* @brief Returns an absolute path to a file in the Samba modules directory.
*