It seems that Tru64 has "naturally" threadsafe APIs only for
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 17 Aug 2001 02:33:00 +0000 (02:33 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 17 Aug 2001 02:33:00 +0000 (02:33 +0000)
of the usual suspects (like getpwent) but not for others
(like localtime and rand).  The _r versions are available
for all of them, so let's use them.

p4raw-id: //depot/perl@11699

perl.h

diff --git a/perl.h b/perl.h
index f4629f8..1ff9d32 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -443,10 +443,10 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
 #   define USE_REENTRANT_API
 #endif
 
-/* Tru64/Digital UNIX/DEC OSF/1 and Win32 have naturally
- * threadsafe libraries, no need to use any _r variants. */
+/* Win32 has naturally threadsafe libraries,
+ * no need to use any _r variants. */
 #ifdef USE_REENTRANT_API
-#   if (defined(__osf__) && defined(__alpha)) || defined(WIN32)
+#   ifdef WIN32
 #       undef USE_REEENTRANT_API
 #   endif
 #endif