summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/include/system/filesys.h9
-rw-r--r--source4/lib/netif/netif.c1
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
index 60d2910ba0..619b97d9bc 100644
--- a/source4/include/system/filesys.h
+++ b/source4/include/system/filesys.h
@@ -23,6 +23,10 @@
#include <unistd.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
@@ -108,11 +112,6 @@
#include <sys/resource.h>
#endif
-
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
diff --git a/source4/lib/netif/netif.c b/source4/lib/netif/netif.c
index 9fe4d21bc9..2a87a7a610 100644
--- a/source4/lib/netif/netif.c
+++ b/source4/lib/netif/netif.c
@@ -36,6 +36,7 @@
#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>