X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2Fstgdefs.h;fp=ghc%2Fincludes%2Fstgdefs.h;h=7e5449907955e8c13b438609ccfc71725c956096;hb=4ebe783936b208b998d84686bdca83e7baf880de;hp=491f906e8c667ec7b5b51f33fb26ce3390b0dbb3;hpb=7c948a00f566e23b187044a0e5cf07255e478146;p=ghc-hetmet.git 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