[asterisk-commits] tilghman: trunk r215800 - /trunk/include/asterisk.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 2 22:30:46 CDT 2009


Author: tilghman
Date: Wed Sep  2 22:30:42 2009
New Revision: 215800

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215800
Log:
Revert attempt to standardize with _POSIX_C_SOURCE.
This did not function in the way that was intended, causing more compatibility
issues than it solved.  It is best, therefore, that it be simply removed.
(Discussed with kpfleming; agreement to remove was reached.)

Modified:
    trunk/include/asterisk.h

Modified: trunk/include/asterisk.h
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/include/asterisk.h?view=diff&rev=215800&r1=215799&r2=215800
==============================================================================
--- trunk/include/asterisk.h (original)
+++ trunk/include/asterisk.h Wed Sep  2 22:30:42 2009
@@ -19,25 +19,6 @@
 #define _ASTERISK_H
 
 #include "asterisk/autoconfig.h"
-
-#if !defined(__Darwin__) && !defined(__OpenBSD__)
-
-#define _POSIX_C_SOURCE 200112L
-#define _XOPEN_SOURCE 600
-
-#include <unistd.h>
-
-#if _POSIX_VERSION < 200112L
-#error System does not support POSIX version 200112.
-#endif
-
-/* It is not clear if we need this version check at this time.
-#if _XOPEN_VERSION < 600
-#error System does not support XOPEN version 600.
-#endif
-*/
-
-#endif /* !__Darwin__ && !__OpenBSD__ */
 
 #if !defined(NO_MALLOC_DEBUG) && !defined(STANDALONE) && defined(MALLOC_DEBUG)
 #include "asterisk/astmm.h"




More information about the asterisk-commits mailing list