From 1ac121292590a0678bf3d23f99e4ec8f4f96a477 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 27 Jul 2008 03:16:37 +0000 Subject: setup.h handles definition of _REENTRANT based on NEED_REENTRANT definition which might be defined in config.h or config-*.h files --- lib/setup.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/setup.h b/lib/setup.h index 1b5c6782c..35ff052e8 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -73,13 +73,15 @@ #endif /* HAVE_CONFIG_H */ /* - * Solaris needs _REENTRANT set for a few function prototypes and + * HP-UX needs _REENTRANT set for a few function prototypes and * things to appear in the system header files. Unixware needs it * to build proper reentrant code. Others may also need it. */ -#ifndef _REENTRANT -# define _REENTRANT +#ifdef NEED_REENTRANT +# ifndef _REENTRANT +# define _REENTRANT +# endif #endif /* -- cgit v1.2.3