Commit 8a40424a authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Minor tweaks to HsUnix.h

parent b495e1d8
......@@ -89,9 +89,10 @@
#include <signal.h>
/* in Signals.c */
/* defined in rts/posix/Signals.c */
extern HsInt nocldstop;
/* defined in libc */
extern char **environ;
......@@ -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
// not part of POSIX, hence may not be always defined
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment