summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-06 12:10:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:33 -0500
commit800212bc12a90a6c32d68c6a01edc3142bd93369 (patch)
treeb77a6609686176f837f6ebe6a1131b50e2ad2c8d /source4
parent6c3a5b30e9d42d832f4c68211c5f46a096803591 (diff)
downloadsamba-800212bc12a90a6c32d68c6a01edc3142bd93369.tar.gz
samba-800212bc12a90a6c32d68c6a01edc3142bd93369.tar.bz2
samba-800212bc12a90a6c32d68c6a01edc3142bd93369.zip
r3578: a couple of include changes that should help with FreeBSD
(This used to be commit d8c4a660a08d7be8b69e4e5458bdcc1cb492506e)
Diffstat (limited to 'source4')
-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>