diff options
author | Ian Lynagh <igloo@earth.li> | 2010-06-17 17:49:12 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-06-17 17:49:12 +0000 |
commit | 5182354176da7c494435f56b6b22004400858610 (patch) | |
tree | b8537d1a92bb77f0aa6b94784544e0f6d1801405 /rts/PosixSource.h | |
parent | 5f9b7e5f25c6b40dfe03fc968e474ac83e6273be (diff) | |
download | haskell-5182354176da7c494435f56b6b22004400858610.tar.gz |
In PosixSource.h, conditionally define things based on platform
This may not be ideal, but it should get GHC building on all platforms
again.
Diffstat (limited to 'rts/PosixSource.h')
-rw-r--r-- | rts/PosixSource.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rts/PosixSource.h b/rts/PosixSource.h index fa61b99926..d139dd50af 100644 --- a/rts/PosixSource.h +++ b/rts/PosixSource.h @@ -11,17 +11,19 @@ #include <ghcplatform.h> +#if defined(freebsd_HOST_OS) #define _POSIX_C_SOURCE 200112L #define _XOPEN_SOURCE 600 - -#if !defined(freebsd_HOST_OS) +#else +#define _POSIX_SOURCE 1 +#define _POSIX_C_SOURCE 199506L +#define _XOPEN_SOURCE 500 // FreeBSD takes a different approach to _ISOC99_SOURCE: on FreeBSD it // means "I want *just* C99 things", whereas on GNU libc and Solaris // it means "I also want C99 things". // // On both GNU libc and FreeBSD, _ISOC99_SOURCE is implied by // _XOPEN_SOURCE==600, but on Solaris it is an error to omit it. -// #define _ISOC99_SOURCE #endif |