From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRRJt-0003Id-LS for qemu-devel@nongnu.org; Tue, 31 May 2011 11:57:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRRJs-0005PT-MH for qemu-devel@nongnu.org; Tue, 31 May 2011 11:57:25 -0400 Received: from agogare.doit.wisc.edu ([144.92.197.211]:49152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRRJs-0005PO-GZ for qemu-devel@nongnu.org; Tue, 31 May 2011 11:57:24 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LM200M00EVNBP00@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Tue, 31 May 2011 09:57:23 -0500 (CDT) Received: from comporellon.tachypleus.net (adsl-71-150-248-94.dsl.mdsnwi.sbcglobal.net [71.150.248.94]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LM200APQEVMZP30@smtpauth2.wiscmail.wisc.edu> for qemu-devel@nongnu.org; Tue, 31 May 2011 09:57:23 -0500 (CDT) Date: Tue, 31 May 2011 09:57:22 -0500 From: Nathan Whitehorn Message-id: <4DE501D2.7060505@freebsd.org> Subject: [Qemu-devel] [PATCH] Fix build on FreeBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 +#include #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 #endif +#ifdef CONFIG_BSD +#include +#endif + #ifdef CONFIG_EVENTFD #include #endif