From patchwork Mon Jun 28 14:40:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 57146 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C1642B6EEB for ; Tue, 29 Jun 2010 00:42:09 +1000 (EST) Received: from localhost ([127.0.0.1]:44950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFXC-0000Bo-RC for incoming@patchwork.ozlabs.org; Mon, 28 Jun 2010 10:42:06 -0400 Received: from [140.186.70.92] (port=40471 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFWH-00009T-8C for qemu-devel@nongnu.org; Mon, 28 Jun 2010 10:41:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTFWE-0002Lr-B1 for qemu-devel@nongnu.org; Mon, 28 Jun 2010 10:41:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53356) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFWE-0002Ll-4Y for qemu-devel@nongnu.org; Mon, 28 Jun 2010 10:41:06 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5SEf1Xk031587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 Jun 2010 10:41:01 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5SEex9o027430; Mon, 28 Jun 2010 10:40:59 -0400 From: Jes.Sorensen@redhat.com To: anthony@codemonkey.ws Date: Mon, 28 Jun 2010 16:40:58 +0200 Message-Id: <1277736058-9429-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: frank.arnold@amd.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] Include sys/mman.h before qemu-options.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jes Sorensen The result of parsing qemu-options.def depends on whehter or not MAP_POPULATE is defined, so make sure to include sys/mman.h before including qemu-options.h. Reported by Frank Arnold. Signed-off-by: Jes Sorensen --- os-posix.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/os-posix.c b/os-posix.c index 804e20c..00133a0 100644 --- a/os-posix.c +++ b/os-posix.c @@ -28,6 +28,8 @@ #include #include #include +/*needed for MAP_POPULATE before including qemu-options.h */ +#include #include #include