Skip to content
Snippets Groups Projects
Commit 8a40424a authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Minor tweaks to HsUnix.h

parent b495e1d8
No related branches found
No related tags found
No related merge requests found
...@@ -89,9 +89,10 @@ ...@@ -89,9 +89,10 @@
#include <signal.h> #include <signal.h>
#endif #endif
/* in Signals.c */ /* defined in rts/posix/Signals.c */
extern HsInt nocldstop; extern HsInt nocldstop;
/* defined in libc */
extern char **environ; extern char **environ;
#ifdef HAVE_RTLDNEXT #ifdef HAVE_RTLDNEXT
...@@ -105,7 +106,7 @@ void *__hsunix_rtldDefault (void); ...@@ -105,7 +106,7 @@ void *__hsunix_rtldDefault (void);
/* O_SYNC doesn't exist on Mac OS X and (at least some versions of) FreeBSD, /* 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 */ fall back to O_FSYNC, which should be the same */
#ifndef O_SYNC #ifndef O_SYNC
#define O_SYNC O_FSYNC # define O_SYNC O_FSYNC
#endif #endif
// not part of POSIX, hence may not be always defined // not part of POSIX, hence may not be always defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment