X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPosixSource.h;h=b3da60fe37ce36d85e3195b61a60c2d684808636;hb=661c97c65e5fa47177502e592bb763f752b487ac;hp=a938f9bc0f97009b33e6d7a6d41a9d4ad2221a5d;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/rts/PosixSource.h b/rts/PosixSource.h index a938f9b..b3da60f 100644 --- a/rts/PosixSource.h +++ b/rts/PosixSource.h @@ -9,10 +9,21 @@ #ifndef POSIXSOURCE_H #define POSIXSOURCE_H +#include + #define _POSIX_SOURCE 1 #define _POSIX_C_SOURCE 199506L -#define _ISOC9X_SOURCE +#define _XOPEN_SOURCE 500 +#define _ISOC99_SOURCE + +/* Let's be ISO C99 too... */ -/* Let's be ISO C9X too... */ +#if defined(darwin_HOST_OS) +/* If we don't define this the including sysctl breaks with things like + /usr/include/bsm/audit.h:224:0: + error: syntax error before 'u_char' +*/ +#define _DARWIN_C_SOURCE 1 +#endif #endif /* POSIXSOURCE_H */