提交 41975b26 编写于 作者: A Andreas Färber 提交者: Peter Maydell

oslib-posix: Fix build on FreeBSD

Commit 10f5bff6 (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: NAndreas Färber <andreas.faerber@web.de>
Message-id: 1394717279-23406-1-git-send-email-andreas.faerber@web.de
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 be86c53c
......@@ -44,10 +44,6 @@
#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;
......
......@@ -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__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册