qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix build on FreeBSD


From: Nathan Whitehorn
Subject: [Qemu-devel] [PATCH] Fix build on FreeBSD
Date: Tue, 31 May 2011 09:57:22 -0500
User-agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10

Add some includes required to build qemu on FreeBSD.

---
 bsd-user/syscall.c |    2 ++
 iohandler.c        |    1 +
 os-posix.c         |    4 ++++
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index eb1cdf2..7b49f54 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -212,9 +212,11 @@ static int sysctl_oldcvt(void *holdp, size_t holdlen, uint3
2_t kind)
         *(uint64_t *)holdp = tswap64(*(unsigned long *)holdp);
         break;
 #endif
+#ifdef CTLTYPE_QUAD
     case CTLTYPE_QUAD:
         *(uint64_t *)holdp = tswap64(*(uint64_t *)holdp);
         break;
+#endif
     case CTLTYPE_STRING:
         break;
     default:
diff --git a/iohandler.c b/iohandler.c
index 2b82421..7266aca 100644
--- a/iohandler.c
+++ b/iohandler.c
@@ -29,6 +29,7 @@

 #ifndef _WIN32
 #include <sys/wait.h>
+#include <signal.h>
 #endif

 typedef struct IOHandlerRecord {
diff --git a/os-posix.c b/os-posix.c
index 3204197..13b7229 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -44,6 +44,10 @@
 #include <sys/syscall.h>
 #endif

+#ifdef CONFIG_BSD
+#include <sys/sysctl.h>
+#endif
+
 #ifdef CONFIG_EVENTFD
 #include <sys/eventfd.h>
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]