]> Git Repo - qemu.git/commitdiff
oslib-posix: Fix build on FreeBSD
authorAndreas Färber <[email protected]>
Thu, 13 Mar 2014 13:27:59 +0000 (14:27 +0100)
committerPeter Maydell <[email protected]>
Thu, 13 Mar 2014 14:34:16 +0000 (14:34 +0000)
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 <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
Message-id: 1394717279[email protected]
Signed-off-by: Peter Maydell <[email protected]>
os-posix.c
util/oslib-posix.c

index 61873014816e5b3471516092214b7b03df7f2e39..cb2a7f7ad71c5a08a9ea204e97835e2c41b4d1e2 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;
index c2eeb4fe40676212e8acb9855e1b01cd4721236f..8e9c770d28016f29f646fb61e19e7b14fe7d6a04 100644 (file)
@@ -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__)
This page took 0.025258 seconds and 4 git commands to generate.