summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-07-23 07:50:30 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-07-23 07:50:30 +0000
commit4b8dfb01980b44bc3284c87aadeada130f94f85f (patch)
tree68e97aba437f1a71fca268b940bccf4a7987444e /includes
parent141131dfd6fa5d5936c4f932e5467346e3e0bca1 (diff)
downloadhaskell-4b8dfb01980b44bc3284c87aadeada130f94f85f.tar.gz
NetBSD defines _REENTRANT in its header files, so compiling ghc gives
redefinition warnings for all files that are including includes/Rts.h. Contributed by: Krister Walfridsson <krister.walfridsson@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r--includes/Rts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h
index d96545005c..b5737d4d0e 100644
--- 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