summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/system/passwd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/replace/system/passwd.h b/source4/lib/replace/system/passwd.h
index 513947c85d..36fca7b4f8 100644
--- a/source4/lib/replace/system/passwd.h
+++ b/source4/lib/replace/system/passwd.h
@@ -27,6 +27,9 @@
*/
+/* this needs to be included before nss_wrapper.h on some systems */
+#include <unistd.h>
+
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif