From patchwork Tue May 31 14:57:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Whitehorn X-Patchwork-Id: 98052 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DC767B6F71 for ; Wed, 1 Jun 2011 01:57:36 +1000 (EST) Received: from localhost ([::1]:44515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRRK2-0003Ik-8q for incoming@patchwork.ozlabs.org; Tue, 31 May 2011 11:57:34 -0400 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 To: qemu-devel@nongnu.org Message-id: <4DE501D2.7060505@freebsd.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 144.92.197.211 Subject: [Qemu-devel] [PATCH] Fix build on FreeBSD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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