Ian Lynagh wrote:
Thu Sep 4 11:50:42 PDT 2008 Ian Lynagh <[EMAIL PROTECTED]>
* Define _BSD_SOURCE in Stg.h
This means S_ISSOCK gets defined on Linux
This is highly dubious. The reason we needed these things in the past was
because when compiling via C, Stg.h is always included first, and there was
no other place to put things like _BSD_SOURCE. In GHC 6.10 it should never
be necessary to use _BSD_SOURCE for via-C compilations, only for ordinary
.c compilations, where it's possible to put the #define in the source file.
But perhaps I've misunderstood the problem. Can we move _BSD_SOURCE to
HsBase.h?
Cheers,
Simon
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc