[GHC] #5135: compilation failure on Darwin 8 due to _POSIX_C_SOURCE
GHC
cvs-ghc at haskell.org
Tue Apr 19 10:13:44 CEST 2011
#5135: compilation failure on Darwin 8 due to _POSIX_C_SOURCE
------------------------+---------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.3 | Keywords:
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: powerpc | Failure: Building GHC failed
------------------------+---------------------------------------------------
In rts/PosixSource.h various standards and extensions are enabled. This
yields in sys/types.h on Darwin *not* defining u_* typedefs. The code
however relies on this. This problem has been noted already, and hence a
hack to define _DARWIN_C_SOURCE has been added which works on Darwin 9 and
up.
On Darwin 8, however, this define doesn't exist in sys/types.h. Without
wanting to change the u_*, I resorted to the rather hackish fix as
attached, such that sys/types.h is included on Darwin before various
standards are set, and hence the u_* types will disappear.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5135>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list