summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-09-15 06:48:49 +0200
committerBjörn Jacke <bj@sernet.de>2009-09-15 06:54:31 +0200
commitf410d23185f5c81dbc111285ea0ba9daf5fc111d (patch)
tree166ea900100e443b86c1a7d760f5f776732551b3 /source3/param
parent24309bdb2efca36375f3c833f72ebec3908d31fd (diff)
downloadsamba-f410d23185f5c81dbc111285ea0ba9daf5fc111d.tar.gz
samba-f410d23185f5c81dbc111285ea0ba9daf5fc111d.tar.bz2
samba-f410d23185f5c81dbc111285ea0ba9daf5fc111d.zip
s3: BSD needs sys/sysctl.h included to build properly
FreeBSD (and other BSDs, too) need sys/sysctl.h inclueded to use sysctlbyname(). Thanks to Timur Bakeyev for that.
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index c91f67656b..b278b9616d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -54,6 +54,10 @@
#include "includes.h"
#include "printing.h"
+#ifdef HAVE_SYS_SYSCTL_H
+#include <sys/sysctl.h>
+#endif
+
#ifdef HAVE_HTTPCONNECTENCRYPT
#include <cups/http.h>
#endif