diff src/s/sol2.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children
line wrap: on
line diff
--- a/src/s/sol2.h	Mon Aug 13 11:19:22 2007 +0200
+++ b/src/s/sol2.h	Mon Aug 13 11:20:41 2007 +0200
@@ -10,6 +10,20 @@
 #define USG5_4
 #endif
 
+#undef  _POSIX_C_SOURCE
+
+#if OS_RELEASE > 54
+/* There were some bugs with preprocessor symbol interaction, which
+   were not fixed until 2.5. */
+#define __EXTENSIONS__ 1
+
+#undef  _XOPEN_SOURCE
+#define _XOPEN_SOURCE 1
+
+#undef  _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
+#endif /* > Solaris 2.4 */
+
 #if OS_RELEASE >= 57
 #define HAVE_GETLOADAVG
 #endif