From 3c76ac114da92cd7404d643ae5a0565e4333d703 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 16 Sep 2006 20:52:57 +0000 Subject: r18589: make inclusion of net/if.h conditional. It breaks HPUX with gcc. (This used to be commit ac71f40f8ff13c422e528dd5013842aa5a5004e7) --- source4/lib/socket/netif.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source4/lib/socket/netif.c') diff --git a/source4/lib/socket/netif.c b/source4/lib/socket/netif.c index 7484baa681..f3df7631e0 100644 --- a/source4/lib/socket/netif.c +++ b/source4/lib/socket/netif.c @@ -30,6 +30,10 @@ */ +#ifndef AUTOCONF_TEST +#include "config.h" +#endif + #include #include #include @@ -42,10 +46,6 @@ #include #include -#ifndef AUTOCONF_TEST -#include "config.h" -#endif - #ifdef HAVE_SYS_TIME_H #include #endif @@ -76,7 +76,10 @@ #define QSORT_CAST (int (*)(const void *, const void *)) #endif +#ifdef HAVE_NET_IF_H #include +#endif + #define BOOL int #include "netif.h" -- cgit