summaryrefslogtreecommitdiff
path: root/source4/lib/socket/netif.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/socket/netif.c')
-rw-r--r--source4/lib/socket/netif.c11
1 files changed, 7 insertions, 4 deletions
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 <unistd.h>
#include <stdio.h>
#include <sys/types.h>
@@ -42,10 +46,6 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-#ifndef AUTOCONF_TEST
-#include "config.h"
-#endif
-
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -76,7 +76,10 @@
#define QSORT_CAST (int (*)(const void *, const void *))
#endif
+#ifdef HAVE_NET_IF_H
#include <net/if.h>
+#endif
+
#define BOOL int
#include "netif.h"