Skip to content

Commit

Permalink
oslib-posix: Fix build on FreeBSD
Browse files Browse the repository at this point in the history
Commit 10f5bff (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>
  • Loading branch information
afaerber authored and pm215 committed Mar 13, 2014
1 parent be86c53 commit 41975b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions os-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions util/oslib-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 41975b2

Please sign in to comment.