[commit: packages/unix] master: Minor tweaks to HsUnix.h (8a40424)

git at git.haskell.org git at git.haskell.org
Tue Apr 19 21:38:29 UTC 2016


Repository : ssh://git@git.haskell.org/unix

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8a40424aa0099a3c23c66df6486801815a6fe151/unix

>---------------------------------------------------------------

commit 8a40424aa0099a3c23c66df6486801815a6fe151
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sun Jan 31 13:36:47 2016 +0100

    Minor tweaks to HsUnix.h


>---------------------------------------------------------------

8a40424aa0099a3c23c66df6486801815a6fe151
 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 <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



More information about the ghc-commits mailing list