From 1cbc93fb54b773d1564bf2f2194d81c02a985a81 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 14 Nov 2009 18:51:37 +0000 Subject: Refactor how preprocessor symbol _THREAD_SAFE definition is done. --- src/setup.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/setup.h') diff --git a/src/setup.h b/src/setup.h index 9120af174..36fde516f 100644 --- a/src/setup.h +++ b/src/setup.h @@ -68,6 +68,17 @@ #endif /* HAVE_CONFIG_H */ +/* + * AIX 4.3 and newer needs _THREAD_SAFE defined to build + * proper reentrant code. Others may also need it. + */ + +#ifdef NEED_THREAD_SAFE +# ifndef _THREAD_SAFE +# define _THREAD_SAFE +# endif +#endif + /* * Tru64 needs _REENTRANT set for a few function prototypes and * things to appear in the system header files. Unixware needs it -- cgit v1.2.3