freebsd-ports/textproc/libxml2/files/patch-python_libxml.c
Koop Mast e3bc416b63 Use USE_CSTD=gnu89 to build libxml2.
When build with Clang it tries to use C99 math functions we don't have.
Also fix a symbol collision with the python bindings that got exposed by a
Clang bug.

With hat:	gnome
2010-10-09 20:12:37 +00:00

11 lines
393 B
C

--- python/libxml.c.orig 2009-09-24 17:31:59.000000000 +0200
+++ python/libxml.c 2010-10-03 09:34:16.000000000 +0200
@@ -30,7 +30,7 @@
#if (defined(_MSC_VER) || defined(__MINGW32__)) && !defined(vsnprintf)
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
-#elif defined(WITH_TRIO)
+#elif defined(WITH_TRIO) && !defined(vsnprintf)
#include "trio.h"
#define vsnprintf trio_vsnprintf
#endif