aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@freebsd.org>2012-04-14 16:01:00 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-04-26 13:14:58 -0500
commit15fdaee3c549afb24b121e060e9852ed29d11cab (patch)
tree4164d5d0f68776e26ed11a3d6bf3bc9d443fad9c /os-posix.c
parent7c7db75576bd5a31508208f153c5aada64b2c8df (diff)
downloadqemu-arm-15fdaee3c549afb24b121e060e9852ed29d11cab.tar.gz
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;