From 8a40424aa0099a3c23c66df6486801815a6fe151 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sun, 31 Jan 2016 13:36:47 +0100 Subject: Minor tweaks to HsUnix.h --- include/HsUnix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/HsUnix.h b/include/HsUnix.h index 1273452..1cbbeb3 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -89,9 +89,10 @@ #include #endif -/* in Signals.c */ +/* defined in rts/posix/Signals.c */ extern HsInt nocldstop; +/* defined in libc */ extern char **environ; #ifdef HAVE_RTLDNEXT @@ -105,7 +106,7 @@ void *__hsunix_rtldDefault (void); /* O_SYNC doesn't exist on Mac OS X and (at least some versions of) FreeBSD, fall back to O_FSYNC, which should be the same */ #ifndef O_SYNC -#define O_SYNC O_FSYNC +# define O_SYNC O_FSYNC #endif // not part of POSIX, hence may not be always defined -- cgit v1.2.3