projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
141131d
)
NetBSD defines _REENTRANT in its header files, so compiling ghc gives
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 23 Jul 2009 07:50:30 +0000
(07:50 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 23 Jul 2009 07:50:30 +0000
(07:50 +0000)
redefinition warnings for all files that are including includes/Rts.h.
Contributed by: Krister Walfridsson <krister.walfridsson@gmail.com>
includes/Rts.h
patch
|
blob
|
history
diff --git
a/includes/Rts.h
b/includes/Rts.h
index
d965450
..
b5737d4
100644
(file)
--- a/
includes/Rts.h
+++ b/
includes/Rts.h
@@
-51,7
+51,9
@@
extern "C" {
/* Needed to get the macro version of errno on some OSs, and also to
get prototypes for the _r versions of C library functions. */
+#ifndef _REENTRANT
#define _REENTRANT 1
+#endif
/*
* We often want to know the size of something in units of an