This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: 'localtime' not thread-safe under HP-UX B.11.11/64
authorJerry D. Hedden <jdhedden@cpan.org>
Mon, 18 Dec 2006 10:18:28 +0000 (02:18 -0800)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 19 Dec 2006 19:48:51 +0000 (19:48 +0000)
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="$*"
            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
        ;;
     esac
 EOCBU