summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-18 09:46:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:36 -0500
commitd1f9224f5824856339d80cf93f1bf4fcee57ce8f (patch)
tree70949fd540043cdd926dac6be9f414afb11c487d /source4/lib
parentf293c2d16390deb9f001b7b8c6242ec0e969b879 (diff)
downloadsamba-d1f9224f5824856339d80cf93f1bf4fcee57ce8f.tar.gz
samba-d1f9224f5824856339d80cf93f1bf4fcee57ce8f.tar.bz2
samba-d1f9224f5824856339d80cf93f1bf4fcee57ce8f.zip
r8540: fixed network interface detection on several hosts
(This used to be commit 777ac8496b400b0ed348995feed83c22c5b344b3)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/netif/netif.c8
-rw-r--r--source4/lib/netif/netif.h4
2 files changed, 5 insertions, 7 deletions
diff --git a/source4/lib/netif/netif.c b/source4/lib/netif/netif.c
index 2a87a7a610..b197178880 100644
--- a/source4/lib/netif/netif.c
+++ b/source4/lib/netif/netif.c
@@ -35,15 +35,15 @@
#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 +77,8 @@
#define QSORT_CAST (int (*)(const void *, const void *))
#endif
+#include "netif.h"
+
#if HAVE_IFACE_IFCONF
/* this works for Linux 2.2, Solaris 2.5, SunOS4, HPUX 10.20, OSF1
diff --git a/source4/lib/netif/netif.h b/source4/lib/netif/netif.h
index d25294f8c2..7efe5a9b19 100644
--- a/source4/lib/netif/netif.h
+++ b/source4/lib/netif/netif.h
@@ -20,10 +20,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
struct iface_struct {
char name[16];
struct in_addr ip;