Perhaps other OLD_POSIX_API systems might be happy and not only HP-UX 10.20
Artur Bergman [Fri, 12 Oct 2001 18:47:49 +0000 (18:47 +0000)]
p4raw-id: //depot/perl@12414

op.h

diff --git a/op.h b/op.h
index 64ed3e5..7896b8f 100644 (file)
--- a/op.h
+++ b/op.h
@@ -469,7 +469,7 @@ typedef struct {
 #define localtime(a)       (localtime_r((a),PL_reentrant_buffer->tmbuff) ? PL_reentrant_buffer->tmbuff : NULL)
 #define gmtime(a)          (gmtime_r((a),PL_reentrant_buffer->tmbuff) ?  PL_reentrant_buffer->tmbuff : NULL)
 
-#if defined(__hpux) && defined(__ux_version) && __ux_version <= 1020
+#ifdef OLD_PTHREADS_API
 
 /* HP-UX 10.20 returns 0 on success, what it returns on failure is hidden
    in the fog somewhere, possibly -1 which means the following should do