summaryrefslogtreecommitdiffstats
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
commit6600aead6297dea2966acc50c2a1a982b7b95166 (patch)
tree154af602c2dce0669efd3ed179b60dc167bae1fa /missing
parentaee85ca4dfd4d518373e361d3fe0a4831e7aab61 (diff)
downloadruby-6600aead6297dea2966acc50c2a1a982b7b95166.tar.gz
ruby-6600aead6297dea2966acc50c2a1a982b7b95166.tar.xz
ruby-6600aead6297dea2966acc50c2a1a982b7b95166.zip
* 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: http://svn.ruby-lang.org/repos/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 a9e0bc075..77c41d5fc 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 */