openwrt-packages/net/samba4/patches/010-samba-4-12-fix-musl_mis...

14 lines
290 B
Diff

--- 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.
*