Revert commit 192032. This define is needed on Mac OS X.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 27 May 2009 23:48:15 +0000 (23:48 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 27 May 2009 23:48:15 +0000 (23:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197374 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/xml.c

index 36e7dd8..54da9fe 100644 (file)
@@ -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>