Change 11690 by jhi@alpha on 2001/08/16 11:31:00

        Subject: [PATCH] *time_r fixes
        From: "Arthur Bergman" <[EMAIL PROTECTED]>
        Message-ID: <00b901c1264e$1cbe6970$21000a0a@vogw2kdev>
        Date: Thu, 16 Aug 2001 14:22:27 +0200

Affected files ...

... //depot/perl/op.h#89 edit

Differences ...

==== //depot/perl/op.h#89 (text) ====
Index: perl/op.h
--- perl/op.h.~1~       Thu Aug 16 05:45:06 2001
+++ perl/op.h   Thu Aug 16 05:45:06 2001
@@ -464,7 +464,7 @@
 typedef struct {
   struct tm* tmbuff;
 } REBUF;
-#define localtime(a)       localtime_r(a,PL_reentrant_buffer->tmbuff)
-#define gmtime(a)          gmtime_r(a,PL_reentrant_buffer->tmbuff)
+#define localtime(a)       (localtime_r(a,PL_reentrant_buffer->tmbuff) && 
+PL_reentrant_buffer->tmbuff)
+#define gmtime(a)          (gmtime_r(a,PL_reentrant_buffer->tmbuff) && 
+PL_reentrant_buffer->tmbuff)
 #endif
 
End of Patch.

Reply via email to