From 886995d9e82e8630675b66c7880fe748e1324913 Mon Sep 17 00:00:00 2001 From: trawick Date: Wed, 15 Aug 2001 16:01:24 +0000 Subject: Previously, we considered gethostbyname/gethostbyaddr to be thread-safe if they were found in libc_r. This didn't work on OS/390 since there is no libc_r, but they are thread-safe. Now, variables apr_gethostbyname_is_thread_safe or apr_gethostbyaddr_is_thread_safe can be set to bypass the libc_r check, either to state that they are thread-safe or to state that they aren't (not necessary unless the ones in libc_r aren't thread-safe after all). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62168 13f79535-47bb-0310-9956-ffa450edef68 --- build/apr_hints.m4 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build/apr_hints.m4') diff --git a/build/apr_hints.m4 b/build/apr_hints.m4 index 4971473f2..ddaa233be 100644 --- a/build/apr_hints.m4 +++ b/build/apr_hints.m4 @@ -372,6 +372,8 @@ dnl # Not a problem in 10.20. Otherwise, who knows? *-ibm-os390) APR_SETIFNULL(apr_lock_method, [USE_SYSVSEM_SERIALIZE]) APR_SETIFNULL(apr_process_lock_is_global, [yes]) + APR_SETIFNULL(apr_gethostbyname_is_thread_safe, [yes]) + APR_SETIFNULL(apr_gethostbyaddr_is_thread_safe, [yes]) APR_SETIFNULL(CC, [cc]) APR_ADDTO(CPPFLAGS, [-U_NO_PROTO -DPTHREAD_ATTR_SETDETACHSTATE_ARG2_ADDR -DPTHREAD_SETS_ERRNO -DPTHREAD_DETACH_ARG1_ADDR -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1]) ;; -- cgit v1.2.1