#5135: compilation failure on Darwin 8 due to _POSIX_C_SOURCE
-------------------------+--------------------------------------------------
Reporter: guest | Owner: igloo
Type: bug | Status: patch
Priority: high | Milestone: 7.4.1
Component: Compiler | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: MacOS X | Blocking:
Architecture: powerpc | Failure: Building GHC failed
-------------------------+--------------------------------------------------
Changes (by igloo):
* owner: => igloo
Comment:
In 10.7, in `/usr/include/sys/types.h`, we have:
{{{
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
[...]
}}}
so presumably 10.4 has instead:
{{{
#if !defined(_POSIX_C_SOURCE)
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
[...]
}}}
The uses of `u_*` types are in other system headers, so we can't change
the places they're used.
The patch validates on x86 32bit OS X 10.7.
It feels very hacky, but I don't really have a better suggestion (short of
declaring 10.4 to be not supported).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5135#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs