Define our desires for POSIX and X/OPEN API features properly.

Based on a post on the gcc-help mailing list and some subsequent reading,
we can increase our portability to various platforms by directly defining
the POSIX and X/OPEN API feature sets we wish to have available. This patch
does that, and also includes a double-check to ensure that the system
we are compiling on can actually provide the requested feature sets.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2009-08-17 16:25:10 +00:00
parent 0d2ef8ac5c
commit 4222e1c367
2 changed files with 14 additions and 6 deletions

View File

@@ -27,9 +27,6 @@
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>