diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 18:02:43 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-30 18:03:24 +0100 |
commit | 2b47647ebef1499ceb5e77d7e19c4c8745b473c7 (patch) | |
tree | b91fc34ae77b567d000c531c4e37d0c8fe86d89b /include | |
parent | 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab (diff) |
Move WCOREDUMP(s) compat `#define` to `HsUnix.h`
Follow-up to 11eb5aabcc3c98eddf1b375c4184fe0df58d7eab
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |