summaryrefslogtreecommitdiffstats
path: root/lib/replace/system/filesys.h
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-08-29 21:13:47 +1000
committerVolker Lendecke <vl@samba.org>2014-09-19 18:11:11 +0200
commit2f7ba8175e87fcb96ef07a7bf3ef99eb3dc4bc28 (patch)
tree258d83850dd50f2c161a7e377e65c8142d27057a /lib/replace/system/filesys.h
parenta757df946930d578fe872820549311877521da00 (diff)
downloadsamba-2f7ba8175e87fcb96ef07a7bf3ef99eb3dc4bc28.tar.gz
samba-2f7ba8175e87fcb96ef07a7bf3ef99eb3dc4bc28.tar.xz
samba-2f7ba8175e87fcb96ef07a7bf3ef99eb3dc4bc28.zip
replace: Fix includes of unistd.h
This should always be conditional. system/passwd.h wants it too so that uid_t is defined. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/replace/system/filesys.h')
-rw-r--r--lib/replace/system/filesys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/system/filesys.h b/lib/replace/system/filesys.h
index b234f101ef..bd6e6a0dd1 100644
--- a/lib/replace/system/filesys.h
+++ b/lib/replace/system/filesys.h
@@ -26,7 +26,10 @@
*/
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <sys/stat.h>
#ifdef HAVE_SYS_PARAM_H