summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-14 05:59:35 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-14 05:59:35 +0000
commitc5d6a1ba48306652bb96bf0bf081c8c66cb45ef5 (patch)
tree154af602c2dce0669efd3ed179b60dc167bae1fa /missing
parent6ed7cf2f1bc6c312fb8bfaf3cb5cf06412785b26 (diff)
downloadruby-c5d6a1ba48306652bb96bf0bf081c8c66cb45ef5.tar.gz
* 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/trunk@2454 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 a9e0bc0757..77c41d5fc5 100644
--- a/missing/strftime.c
+++ b/missing/strftime.c
@@ -447,8 +447,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 */