[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2] os-posix: Fix build on FreeBSD
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH v2] os-posix: Fix build on FreeBSD |
Date: |
Sat, 14 Apr 2012 16:01:00 +0200 |
From: Nathan Whitehorn <address@hidden>
Add an include for a header required to build on recent FreeBSD.
Signed-off-by: Nathan Whitehorn <address@hidden>
Signed-off-by: Andreas F�rber <address@hidden>
---
os-posix.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/os-posix.c b/os-posix.c
index e3ed497..daf3d6f 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;
--
1.7.8
- [Qemu-devel] [PATCH v2] os-posix: Fix build on FreeBSD,
Andreas Färber <=