summaryrefslogtreecommitdiffstats
path: root/os-posix.c
diff options
context:
space:
mode:
authorNathan Whitehorn2012-04-14 16:01:00 +0200
committerAnthony Liguori2012-04-26 20:14:58 +0200
commit15fdaee3c549afb24b121e060e9852ed29d11cab (patch)
tree4164d5d0f68776e26ed11a3d6bf3bc9d443fad9c /os-posix.c
parentmain_loop_wait: block indefinitely (diff)
downloadqemu-15fdaee3c549afb24b121e060e9852ed29d11cab.tar.gz
qemu-15fdaee3c549afb24b121e060e9852ed29d11cab.tar.xz
qemu-15fdaee3c549afb24b121e060e9852ed29d11cab.zip
os-posix: Fix build on FreeBSD
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>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index e3ed497224..daf3d6f6f3 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -44,6 +44,10 @@
#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;