summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-05-18 10:37:15 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-05-18 10:37:15 +0000
commitb4ee9a92737e40ac0133f833781d01a8589f2cb7 (patch)
tree13b112bbce2dca1d543739a113212105700ae6f4 /includes
parentdb6ac78e2be25a5c8c44d50e073df25653dc0039 (diff)
downloadhaskell-b4ee9a92737e40ac0133f833781d01a8589f2cb7.tar.gz
#define _REENTRANT 1 (needed to get the right errno on some OSs)
Partial fix for hanging problems on Solaris and possibly *BSD. A similar fix is also required to libraries/base/includes/HsBase.h.
Diffstat (limited to 'includes')
-rw-r--r--includes/Rts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h
index 3ca0d9a913..a62747e438 100644
--- a/includes/Rts.h
+++ b/includes/Rts.h
@@ -34,6 +34,10 @@ extern "C" {
#define __MSVCRT__ 1
#endif
+/* Needed to get the macro version of errno on some OSs, and also to
+ get prototypes for the _r versions of C library functions. */
+#define _REENTRANT 1
+
/*
* We often want to know the size of something in units of an
* StgWord... (rounded up, of course!)