NetBSD defines _REENTRANT in its header files, so compiling ghc gives
authorSimon Marlow <marlowsd@gmail.com>
Thu, 23 Jul 2009 07:50:30 +0000 (07:50 +0000)
committerSimon 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

index d965450..b5737d4 100644 (file)
@@ -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