aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/HsUnix.h5
1 files 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 <signal.h>
#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