os-posix: Fix build on FreeBSD
authorNathan Whitehorn <nwhitehorn@freebsd.org>
Sat, 14 Apr 2012 14:01:00 +0000 (16:01 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 26 Apr 2012 18:14:58 +0000 (13:14 -0500)
Add an include for a header required to build on recent FreeBSD.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
os-posix.c

index e3ed49722497e08f2dbda50a732200ed8de46493..daf3d6f6f381105a04b09ec5efa54a756ddd30a6 100644 (file)
 #include <sys/prctl.h>
 #endif
 
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
 static struct passwd *user_pwd;
 static const char *chroot_dir;
 static int daemonize;