[commit: packages/unix] master: Move WCOREDUMP(s) compat `#define` to `HsUnix.h` (2b47647)

git at git.haskell.org git at git.haskell.org
Tue Apr 19 21:37:39 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2b47647ebef1499ceb5e77d7e19c4c8745b473c7/unix

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

commit 2b47647ebef1499ceb5e77d7e19c4c8745b473c7
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Jan 30 18:02:43 2016 +0100

    Move WCOREDUMP(s) compat `#define` to `HsUnix.h`
    
    Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab


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

2b47647ebef1499ceb5e77d7e19c4c8745b473c7
 cbits/HsUnix.c   | 5 -----
 include/HsUnix.h | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c
index 8300949..a0b15e9 100644
--- a/cbits/HsUnix.c
+++ b/cbits/HsUnix.c
@@ -8,11 +8,6 @@
 
 #include "HsUnix.h"
 
-// not part of POSIX, hence may not be always defined
-#ifndef WCOREDUMP
-# define WCOREDUMP(s) 0
-#endif
-
 #ifdef HAVE_RTLDNEXT
 void *__hsunix_rtldNext (void) {return RTLD_NEXT;} 
 #endif
diff --git a/include/HsUnix.h b/include/HsUnix.h
index cfc221f..a6bba9a 100644
--- a/include/HsUnix.h
+++ b/include/HsUnix.h
@@ -108,6 +108,11 @@ fall back to O_FSYNC, which should be the same */
 #define O_SYNC O_FSYNC
 #endif
 
+// not part of POSIX, hence may not be always defined
+#ifndef WCOREDUMP
+# define WCOREDUMP(s) 0
+#endif
+
 // lstat is a macro on some platforms, so we need a wrapper:
 int __hsunix_lstat(const char *path, struct stat *buf);
 



More information about the ghc-commits mailing list