[ PATCH ] time problem on 10.20 w/ threads
H.Merijn Brand [Sun, 14 Apr 2002 16:29:59 +0000 (18:29 +0200)]
From: "H.Merijn Brand" <h.m.brand@hccnet.nl>
Message-Id: <20020414143200.07BC.H.M.BRAND@hccnet.nl>

p4raw-id: //depot/perl@15906

hints/hpux.sh

index 043ee79..b4c862e 100644 (file)
@@ -488,8 +488,18 @@ EOM
                    # tell perl.h to include <pthread.h> before other
                    # include files
                    ccflags="$ccflags -DPTHREAD_H_FIRST"
-# First column on purpose.
+# First column on purpose:
+# this is not a standard Configure variable
+# but we need to get this noticed.
 pthread_h_first="$define"
+
+                   # HP-UX 10.X seems to have no easy
+                   # way of detecting these *time_r protos.
+                   d_gmtime_r_proto='define'
+                   gmtime_r_proto='REENTRANT_PROTO_I_TS'
+                   d_localtime_r_proto='define'
+                   localtime_r_proto='REENTRANT_PROTO_I_TS'
+
                    # Avoid the poisonous conflicting (and irrelevant)
                    # prototypes of setkey(). 
                    i_crypt="$undef"