summaryrefslogtreecommitdiff
path: root/main/xml.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-05-27 23:48:15 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-05-27 23:48:15 +0000
commitec99151d7425204ed4c8479113fff9b6109feda6 (patch)
treefc2fd3538f139f2f65229c0b8c77e03d8288e28d /main/xml.c
parentf6bdacebe40aab89abaf48f46323ab1a2bd2ef1d (diff)
Revert commit 192032. This define is needed on Mac OS X.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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>