diff options
author | Martin Schwenke <martin@meltin.net> | 2014-08-29 21:13:47 +1000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-09-19 18:11:11 +0200 |
commit | 2f7ba8175e87fcb96ef07a7bf3ef99eb3dc4bc28 (patch) | |
tree | 258d83850dd50f2c161a7e377e65c8142d27057a /lib/replace/system/filesys.h | |
parent | a757df946930d578fe872820549311877521da00 (diff) | |
download | samba-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.h | 3 |
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 |