aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 13:36:47 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 13:36:47 +0100
commit8a40424aa0099a3c23c66df6486801815a6fe151 (patch)
tree015deb38971525a02427da9f37765f41ec021606
parentb495e1d862411c731bf9374e2db949dfb3442fd4 (diff)
Minor tweaks to HsUnix.h
-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