From: Roger Pau Monne Subject: [PATCH v4] xenpaging: add _NETBSD_SOURCE Date: Thu, 15 Dec 2011 18:44:09 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Roger Pau Monne # Date 1323971037 -3600 # Node ID bdf7e5b3ac350835f172511117dad1fe33606bdf # Parent 759f27054f543cd57e008db4031fb7353c88fc20 xenpaging: add _NETBSD_SOURCE The _XOPEN_SOURCE define was breaking the compilation under NetBSD. Added _NETBSD_SOURCE to maintain compatibility. Error message: gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xenpaging.o.d -fno-optimize-sibling-calls -I/root/xen-04102011/tools/xenpaging/../../tools/libxc -I/root/xen-04102011/tools/xenpaging/../../tools/include -I/root/xen-04102011/tools/xenpaging/../../tools/xenstore -I/root/xen-04102011/tools/xenpaging/../../tools/include -Werror -Wno-unused -g -c -o xenpaging.o xenpaging.c -I/usr/xen42/include -I/usr/include cc1: warnings being treated as errors xenpaging.c: In function 'xenpaging_init': xenpaging.c:333: warning: implicit declaration of function 'asprintf' Signed-off-by: Roger Pau Monne diff -r 759f27054f54 -r bdf7e5b3ac35 tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Thu Dec 15 10:00:09 2011 +0100 +++ b/tools/xenpaging/xenpaging.c Thu Dec 15 18:43:57 2011 +0100 @@ -20,6 +20,7 @@ #define _XOPEN_SOURCE 600 #define _GNU_SOURCE +#define _NETBSD_SOURCE #include #include