diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-15 16:01:24 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-15 16:01:24 +0000 |
commit | 886995d9e82e8630675b66c7880fe748e1324913 (patch) | |
tree | 983eba9303b4c03476cacd1dfaa2dec409281616 /build/apr_hints.m4 | |
parent | e0fc20bf3d0e52f8587ee7b8aae131ef06ab7df3 (diff) | |
download | libapr-886995d9e82e8630675b66c7880fe748e1324913.tar.gz |
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
Diffstat (limited to 'build/apr_hints.m4')
-rw-r--r-- | build/apr_hints.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
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]) ;; |