r18957: we need to include unistd.h in system/network.h because
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Sep 2006 14:16:32 +0000 (14:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:24 +0000 (14:20 -0500)
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)

source4/lib/replace/system/network.h

index a21f8e2eaf43a51e5067d9a9631bd0bcf3f4148e..5e648dcd156c78a268e5292d052bc3104ce16db5 100644 (file)
 #include <net/if.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
 #endif