diff options
Diffstat (limited to 'source3/lib/interfaces.c')
-rw-r--r-- | source3/lib/interfaces.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/source3/lib/interfaces.c b/source3/lib/interfaces.c index 96f4b4cd94..7b8ef0d0c1 100644 --- a/source3/lib/interfaces.c +++ b/source3/lib/interfaces.c @@ -41,6 +41,10 @@ #include <sys/time.h> #include <net/if.h> +#ifndef SIOCGIFCONF +#include <sys/sockio.h> +#endif + #ifdef AUTOCONF_TEST struct iface_struct { char name[16]; @@ -52,16 +56,6 @@ struct iface_struct { #include "interfaces.h" #endif -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif - -#ifndef SIOCGIFCONF -#ifdef HAVE_SYS_SOCKIO_H -#include <sys/sockio.h> -#endif -#endif - #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif |