From: Simon Marlow Date: Thu, 23 Jul 2009 07:50:30 +0000 (+0000) Subject: NetBSD defines _REENTRANT in its header files, so compiling ghc gives X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=4b8dfb01980b44bc3284c87aadeada130f94f85f 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 --- diff --git a/includes/Rts.h b/includes/Rts.h index d965450..b5737d4 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