summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-07-21 06:41:09 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-07-21 06:41:09 +0000
commit0c6cf2eec5e149cc0b1217abdb4a507666c7f469 (patch)
tree755fc15caf032d5083da6dea2129f5cd0fc28ccc /acconfig.h
parent6617ec0a6208fab408c014f8273e95d5e9185381 (diff)
downloadlibapr-0c6cf2eec5e149cc0b1217abdb4a507666c7f469.tar.gz
Add thread-safe resolver - with a high thread count, we can run into
problems using a non-thread safe resolver function. We'll attempt to use gethostbyname_r if: APR_HAS_THREADS is defined, libc_r doesn't have gethostbyname (BSD), and gethostbyname_r even exists. I've tested this on Solaris 7. Ian Holsman has reported success on Solaris 8 (I wonder if he didn't have IPv6 support turned on - that would cause it to use the non-getaddrinfo() code path). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61976 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index f9318b233..e63bac496 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -23,6 +23,7 @@
#undef USE_PTHREAD_SERIALIZE
#undef READDIR_IS_THREAD_SAFE
+#undef GETHOSTBYNAME_IS_THREAD_SAFE
#undef NEED_RLIM_T
#undef USEBCOPY