summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bindings/xml/Makefile4
1 files changed, 4 insertions, 0 deletions
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