r8541: this might take a few tries ...
[bbaumbach/samba-autobuild/.git] / source4 / lib / netif / netif.c
index 2a87a7a610b8a3d948f30f780b258ee711d52c47..8256615ef2b0750cb1fc013496c28ef8bbacfc71 100644 (file)
 #include <sys/types.h>
 #include <netdb.h>
 #include <sys/ioctl.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <net/if.h>
 #include <netdb.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
 
 #ifndef AUTOCONF_TEST
-#include "lib/netif/netif.h"
 #include "config.h"
 #endif
 
@@ -77,6 +76,9 @@
 #define QSORT_CAST (int (*)(const void *, const void *))
 #endif
 
+#include <net/if.h>
+#include "netif.h"
+
 #if HAVE_IFACE_IFCONF
 
 /* this works for Linux 2.2, Solaris 2.5, SunOS4, HPUX 10.20, OSF1