[project @ 1997-05-18 04:28:42 by sof]
authorsof <unknown>
Sun, 18 May 1997 04:28:42 +0000 (04:28 +0000)
committersof <unknown>
Sun, 18 May 1997 04:28:42 +0000 (04:28 +0000)
2.03 update to get around gcc-2.7.1 header silly

ghc/includes/stgdefs.h

index 491f906..7e54499 100644 (file)
@@ -56,6 +56,17 @@ void _stgAssert PROTO((char *, unsigned int));
         _POSIX2_VERSION
         _POSIX_4SOURCE
 */
+
+/* Bogus use of non-existent variable POSIX_C_SOURCE in the supplied header files
+   for gcc-2.7.1 on Solaris forces us to define it: (this strikes when using st_atime
+   and friends in <sys/stat.h> )
+*/
+
+#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 7) 
+/* sigh, not possible to get at bugfix release number (fixed in 2.7.2) */
+#define POSIX_C_SOURCE _POSIX_C_SOURCE
+#endif
+
 #include <unistd.h>
 #include <signal.h>
 #endif