Fix for MT_safe_localtime() using the OS/2 EMX compiler. OS2_BRANCH
authordanda
Tue, 05 May 1998 20:44:48 +0000
branchOS2_BRANCH
changeset 90 36daa25a390b9e1cc130248b7d062894d91005bc
parent 81 801d2f74a34b438121ab90795c5ed66a3323d6b3
child 91 9cfcc4308ae284d9cbb09b1f4206ab28ca9c3336
push idunknown
push userunknown
push dateunknown
Fix for MT_safe_localtime() using the OS/2 EMX compiler. Submitted by John Fairhurst. CVS: CVS:
pr/src/misc/prtime.c
--- a/pr/src/misc/prtime.c
+++ b/pr/src/misc/prtime.c
@@ -572,17 +572,17 @@ static struct tm *MT_safe_localtime(cons
      */
     
 #if defined(XP_MAC)
     tmPtr = Maclocaltime(clock);
 #else
     tmPtr = localtime(clock);
 #endif
 
-#if defined(WIN16)
+#if defined(WIN16) || defined(XP_OS2_EMX)
     if ( (PRInt32) *clock < 0 )
         result = NULL;
     else
         *result = *tmPtr;
 #else
     if (tmPtr) {
         *result = *tmPtr;
     } else {