summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/auth/auth_unix.c1
-rw-r--r--source4/include/system/passwd.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/auth_unix.c b/source4/auth/auth_unix.c
index 0c2db48c56..97c941a2a5 100644
--- a/source4/auth/auth_unix.c
+++ b/source4/auth/auth_unix.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "auth/auth.h"
#include "system/passwd.h"
+#include "system/iconv.h"
/* TODO: look at how to best fill in parms retrieveing a struct passwd info
* except in case USER_INFO_DONT_CHECK_UNIX_ACCOUNT is set
diff --git a/source4/include/system/passwd.h b/source4/include/system/passwd.h
index f994df542f..219ec306ae 100644
--- a/source4/include/system/passwd.h
+++ b/source4/include/system/passwd.h
@@ -33,6 +33,10 @@
#include <sys/id.h>
#endif
+#ifdef HAVE_CRYPT_H
+#include <crypt.h>
+#endif
+
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif