Re: 'localtime' not thread-safe under HP-UX B.11.11/64
Jerry D. Hedden [Mon, 18 Dec 2006 10:18:28 +0000 (02:18 -0800)]
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <31291.28361.qm@web30205.mail.mud.yahoo.com>

p4raw-id: //depot/perl@29596

hints/hpux.sh

index 05d3a69..df677ff 100644 (file)
@@ -643,8 +643,14 @@ EOM
            set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
            shift
            libswanted="$*"
-           fi
 
+           # HP-UX 11.X seems to have no easy
+           # way of detecting these *time_r protos.
+           d_gmtime_r_proto='define'
+           gmtime_r_proto='REENTRANT_PROTO_S_TS'
+           d_localtime_r_proto='define'
+           localtime_r_proto='REENTRANT_PROTO_S_TS'
+           fi
        ;;
     esac
 EOCBU