diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-14 18:51:37 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-14 18:51:37 +0000 |
commit | e43ac04a1f6a04620eaf111e144dac7f3bb2f77e (patch) | |
tree | 143b9f27e851611b1eeeffff1d3e9c298ce1fe3e /ares_setup.h | |
parent | ccabe949dda62bc0365fe6e624ccaecb686c1968 (diff) | |
download | c-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.tar.gz c-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.tar.bz2 c-ares-e43ac04a1f6a04620eaf111e144dac7f3bb2f77e.zip |
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
Diffstat (limited to 'ares_setup.h')
-rw-r--r-- | ares_setup.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ares_setup.h b/ares_setup.h index 5896437..ce81b1f 100644 --- a/ares_setup.h +++ b/ares_setup.h @@ -49,6 +49,17 @@ /* ================================================================ */ /* + * 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 * to build proper reentrant code. Others may also need it. |