summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-16 18:29:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-16 18:29:26 +0000
commit624b29b43ee9bc440524a09e1ee6bd5a04cfc94f (patch)
tree53a2f473fba8ae8f4f09481af76ea51d01513893 /hints
parent0b28bc9ad3d1c2dbf9c662b82926642b3432623d (diff)
downloadperl-624b29b43ee9bc440524a09e1ee6bd5a04cfc94f.tar.gz
FreeBSD is lying to us: there is no threadsafe gethostbyaddr_r.
p4raw-id: //depot/perl@15262
Diffstat (limited to 'hints')
-rw-r--r--hints/freebsd.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 8b324da26e..394abb86b9 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -210,7 +210,13 @@ EOM
exit 1
fi
ldflags="-pthread $ldflags"
- ccflags="-D_THREAD_SAFE $ccflags"
+ case "$osvers" in
+ 4.5*) # 4.5 has gethostbyaddr_r but it is
+ # "Temporary function, not threadsafe"...
+ d_gethostbyaddr_r="undef"
+ d_gethostbyaddr_r_proto="undef"
+ ;;
+ esac
;;
esac