From: Nathan Whitehorn <nwhitehorn@freebsd.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix build on FreeBSD
Date: Tue, 31 May 2011 09:57:22 -0500 [thread overview]
Message-ID: <4DE501D2.7060505@freebsd.org> (raw)
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
next reply other threads:[~2011-05-31 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 14:57 Nathan Whitehorn [this message]
2011-06-02 15:01 ` [Qemu-devel] [PATCH] Fix build on FreeBSD Andreas Färber
2011-06-05 14:03 ` Nathan Whitehorn
2011-06-07 15:27 ` Alexandre Raymond
-- strict thread matches above, loose matches on Subject: below --
2012-03-03 16:34 Nathan Whitehorn
2012-03-17 16:20 ` Blue Swirl
2012-03-17 21:55 ` Nathan Whitehorn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DE501D2.7060505@freebsd.org \
--to=nwhitehorn@freebsd.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.