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 From: Jes.Sorensen@redhat.com Date: Mon, 28 Jun 2010 16:40:58 +0200 Message-Id: <1277736058-9429-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH] Include sys/mman.h before qemu-options.h List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: frank.arnold@amd.com, qemu-devel@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 -- 1.7.0.1