summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/freebsd.sh')
-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