cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/lib/strftime.c


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/lib/strftime.c
Date: Fri, 12 Aug 2005 16:58:16 -0400

Index: ccvs/lib/strftime.c
diff -u ccvs/lib/strftime.c:1.7 ccvs/lib/strftime.c:1.8
--- ccvs/lib/strftime.c:1.7     Mon May 23 17:44:32 2005
+++ ccvs/lib/strftime.c Fri Aug 12 20:58:10 2005
@@ -373,13 +373,6 @@
 # define ns 0
 #endif
 
-#if ! defined _LIBC && ! HAVE_RUN_TZSET_TEST
-/* Solaris 2.5.x and 2.6 tzset sometimes modify the storage returned
-   by localtime.  On such systems, we must use the tzset and localtime
-   wrappers to work around the bug.  */
-"you must run the autoconf test for a working tzset function"
-#endif
-
 
 /* Write information from TP into S according to the format
    string FORMAT, writing no more that MAXSIZE characters
@@ -437,6 +430,15 @@
   const CHAR_T *f;
 #if DO_MULTIBYTE && !defined COMPILE_WIDE
   const char *format_end = NULL;
+#endif
+
+#if ! defined _LIBC && ! HAVE_RUN_TZSET_TEST
+  /* Solaris 2.5.x and 2.6 tzset sometimes modify the storage returned
+     by localtime.  On such systems, we must either use the tzset and
+     localtime wrappers to work around the bug (which sets
+     HAVE_RUN_TZSET_TEST) or make a copy of the structure.  */
+  struct tm copy = *tp;
+  tp = ©
 #endif
 
   zone = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]