summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-27 14:16:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:24 -0500
commitc0c135c774fccc9a1ac6b6a40817ff4207df9478 (patch)
tree4c2745e591cd2871a264d1b1aeaf91f4d657e348 /source4/lib/replace/system
parentc09504ac33a319a48db608b914a05f2049b53550 (diff)
downloadsamba-c0c135c774fccc9a1ac6b6a40817ff4207df9478.tar.gz
samba-c0c135c774fccc9a1ac6b6a40817ff4207df9478.tar.bz2
samba-c0c135c774fccc9a1ac6b6a40817ff4207df9478.zip
r18957: we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems and we need to make sure it gets included before socket_wrapper defines ioctl swrap_ioctl metze (This used to be commit f37b13cbe65404f27d31b8020afb2f542313f4d3)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index a21f8e2eaf..5e648dcd15 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -66,6 +66,10 @@
#include <net/if.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif