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 | |
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')
-rw-r--r-- | lib/replace/system/filesys.h | 3 | ||||
-rw-r--r-- | lib/replace/system/network.h | 6 | ||||
-rw-r--r-- | lib/replace/system/passwd.h | 4 |
3 files changed, 9 insertions, 4 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 diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index 273cb716cf..4a3fd07d8e 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -31,7 +31,9 @@ #error "AC_LIBREPLACE_NETWORK_CHECKS missing in configure" #endif +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> @@ -77,10 +79,6 @@ #include <net/if.h> #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif diff --git a/lib/replace/system/passwd.h b/lib/replace/system/passwd.h index f8b9a774b3..ecc9f603d9 100644 --- a/lib/replace/system/passwd.h +++ b/lib/replace/system/passwd.h @@ -27,6 +27,10 @@ */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef HAVE_PWD_H #include <pwd.h> #endif |