X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2Fstgdefs.h;h=491f906e8c667ec7b5b51f33fb26ce3390b0dbb3;hb=1912120196ed0c0f5b59dfdea23925a32f186247;hp=964cfced714425745e12d56cb25a12998328947d;hpb=0fb44a75439eda75aa783b497c2e00756ddd477d;p=ghc-hetmet.git diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h index 964cfce..491f906 100644 --- a/ghc/includes/stgdefs.h +++ b/ghc/includes/stgdefs.h @@ -33,6 +33,18 @@ void _stgAssert PROTO((char *, unsigned int)); #define NON_POSIX_SOURCE #endif +/* If _NEXT_SOURCE is defined, certain header files make more + * constants visible to us. + * Perhaps it would have been wise, also to define NON_POSIX_SOURCE. + * Things seemed to work better without it however, so I have not + * done it. Nevertheless we do the signal stuff in a NON_POSIX way, + * see StgMacros.lh. + * CaS + */ +#ifdef nextstep3_TARGET_OS +#define _NEXT_SOURCE +#endif + #ifdef NON_POSIX_SOURCE #undef _POSIX_SOURCE #undef _POSIX_C_SOURCE