From 7b0aca2e721b9022292a789acfc51fea71170f1f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 26 Mar 2009 01:29:17 +0000 Subject: Work around bug in libxml headers. svn path=/trunk/dom/; revision=6895 --- bindings/xml/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bindings') diff --git a/bindings/xml/Makefile b/bindings/xml/Makefile index bdebe41..16d42f3 100644 --- a/bindings/xml/Makefile +++ b/bindings/xml/Makefile @@ -10,6 +10,10 @@ ifeq ($(WITH_LIBXML_BINDING),yes) else LDFLAGS := $(LDFLAGS) -lxml2 endif + + # LibXML 2.6.26 has a bug in its headers that expects _POSIX_C_SOURCE to be + # defined. Define it here, even though we don't need it. + CFLAGS := $(CFLAGS) -D_POSIX_C_SOURCE endif include build/makefiles/Makefile.subdir -- cgit v1.2.3