xenpaging: remove _XOPEN_SOURCE
PATCH v3 1/1 xenpaging: remove _XOPEN_SOURCE
# HG changeset patch
# User Roger Pau Monne <[email protected]> # Date 1323939609 -3600
# Node ID 0051e09f73efea06f2f28c0ece57194e286daedc # Parent 759f27054f543cd57e008db4031fb7353c88fc20
xenpaging: remove _XOPEN_SOURCE
The _XOPEN_SOURCE define was breaking the compilation under NetBSD. I've removed it becasue it is not necessary.
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 errorsxenpaging.c: In function 'xenpaging_init':
xenpaging.c:333: warning: implicit declaration of function 'asprintf'
tools/xenpaging/xenpaging.c +0 -1
@@ -18,7 +18,6 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define _XOPEN_SOURCE 600#define _GNU_SOURCE#include <inttypes.h>
Roger Pau Monne writes ("[Xen-devel] [PATCH v3] xenpaging: remove _XOPEN_SOURCE"):
Quoted 1 line
xenpaging: remove
_XOPEN_SOURCE
I decided that it would be best to fix this by removing _XOPEN_SOURCE, so I have applied this patch.
Thanks,
Ian.