summaryrefslogtreecommitdiff
path: root/source3/lib/fault.c
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/lib/fault.c
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/lib/fault.c')
-rw-r--r--source3/lib/fault.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index 51fc53bb0d..bf61bb26c4 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -20,6 +20,11 @@
#include "includes.h"
+#ifdef HAVE_SYS_SYSCTL_H
+#include <sys/sysctl.h>
+#endif
+
+
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
#endif