1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/xml/Makefile b/bindings/xml/Makefile
index bdebe41..16d42f3 100644
@@ -10,6 +10,10 @@ ifeq ($(WITH_LIBXML_BINDING),yes)
LDFLAGS := $(LDFLAGS) -lxml2
+ # 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