aboutsummaryrefslogtreecommitdiffstats
path: root/main/xml.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-27 23:48:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-27 23:48:15 +0000
commit69c76e73df570ec302d78903eb090ce6ab0cd9b7 (patch)
treefc2fd3538f139f2f65229c0b8c77e03d8288e28d /main/xml.c
parent3428bd4097bc70292986c921f134c8c2ab22ea9b (diff)
Revert commit 192032. This define is needed on Mac OS X.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197374 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/xml.c')
-rw-r--r--main/xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/xml.c b/main/xml.c
index 36e7dd812..54da9fef5 100644
--- a/main/xml.c
+++ b/main/xml.c
@@ -27,6 +27,9 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#if defined(HAVE_LIBXML2)
+#ifndef _POSIX_C_SOURCE /* Needed on Mac OS X */
+#define _POSIX_C_SOURCE 200112L
+#endif
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xinclude.h>