Change 15262 by jhi@alpha on 2002/03/16 18:29:26

        FreeBSD is lying to us: there is no threadsafe gethostbyaddr_r.

Affected files ...

.... //depot/perl/hints/freebsd.sh#26 edit

Differences ...

==== //depot/perl/hints/freebsd.sh#26 (text) ====
Index: perl/hints/freebsd.sh
--- perl/hints/freebsd.sh.~1~   Sat Mar 16 11:45:05 2002
+++ perl/hints/freebsd.sh       Sat Mar 16 11:45:05 2002
@@ -210,7 +210,13 @@
                 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
End of Patch.

Reply via email to