From: sof Date: Sun, 18 May 1997 04:28:42 +0000 (+0000) Subject: [project @ 1997-05-18 04:28:42 by sof] X-Git-Tag: Approximately_1000_patches_recorded~662 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4ebe783936b208b998d84686bdca83e7baf880de;p=ghc-hetmet.git [project @ 1997-05-18 04:28:42 by sof] 2.03 update to get around gcc-2.7.1 header silly --- diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h index 491f906..7e54499 100644 --- a/ghc/includes/stgdefs.h +++ b/ghc/includes/stgdefs.h @@ -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 ) +*/ + +#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 #include #endif