summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-14 06:10:51 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-14 06:10:51 +0000
commitb739ba71759cc68b0fe22364b55301a851e7850e (patch)
treef1ffe233605c7fa709a90f1cdc9ce60db47612e6 /missing
parent81120f937569248317f72d34327cb51cf328a44e (diff)
* gc.c (is_pointer_to_heap): avoid GCC 3.1 warnings.
* missing/strftime.c (timezone): it should take no argument on Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/strftime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/missing/strftime.c b/missing/strftime.c
index 3042649aeb..da43fecb65 100644
--- a/missing/strftime.c
+++ b/missing/strftime.c
@@ -446,8 +446,12 @@ strftime(char *s, size_t maxsize, const char *format, const struct tm *timeptr)
strcpy(tbuf, timeptr->tm_name);
#else
gettimeofday(& tv, & zone);
+#ifdef __CYGWIN__
+ strcpy(tbuf, timezone());
+#else
strcpy(tbuf, timezone(zone.tz_minuteswest,
timeptr->tm_isdst > 0));
+#endif
#endif /* HAVE_TM_NAME */
#endif /* HAVE_TM_ZONE */
#endif /* HAVE_TZNAME */