aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2014-03-13 14:27:59 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-03-13 14:34:16 +0000
commit41975b269cf1503c735f8233f8ef373d74f1f137 (patch)
treebdaec65beff477a618096566a47dc4b964db32c0 /util
parentbe86c53c058d75fc3938b1b54f363259f282b3d5 (diff)
oslib-posix: Fix build on FreeBSD
Commit 10f5bff622cad71645e22c027b77ac31e51008ef (util: Split out exec_dir from os_find_datadir) moved code from os-posix.c to util/oslib-posix.c but forgot to move a FreeBSD #include alongside, needed for CTL_KERN among others. Cc: Fam Zheng <famz@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Message-id: 1394717279-23406-1-git-send-email-andreas.faerber@web.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'util')
-rw-r--r--util/oslib-posix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index c2eeb4fe40..8e9c770d28 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -63,6 +63,10 @@ extern int daemon(int, int);
#include <sys/syscall.h>
#endif
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
int qemu_get_thread_id(void)
{
#if defined(__linux__)