From d8275347606cd183caea69837fd765b96d4bab71 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Sep 2006 14:18:08 +0000 Subject: [PATCH] r18958: merge from samba4: 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 --- source/lib/replace/system/network.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/lib/replace/system/network.h b/source/lib/replace/system/network.h index a21f8e2eaf4..5e648dcd156 100644 --- a/source/lib/replace/system/network.h +++ b/source/lib/replace/system/network.h @@ -66,6 +66,10 @@ #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif + #ifdef HAVE_SYS_IOCTL_H #include #endif