projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6ac78
)
#define _REENTRANT 1 (needed to get the right errno on some OSs)
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 18 May 2006 10:37:15 +0000
(10:37 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 18 May 2006 10:37:15 +0000
(10:37 +0000)
Partial fix for hanging problems on Solaris and possibly *BSD.
A similar fix is also required to libraries/base/includes/HsBase.h.
includes/Rts.h
patch
|
blob
|
history
diff --git
a/includes/Rts.h
b/includes/Rts.h
index
3ca0d9a
..
a62747e
100644
(file)
--- 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!)