summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-14 05:15:08 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-14 05:15:08 +0000
commit7f46923feea165d3b6ece6b0df67ffe510441722 (patch)
treef2f72daaff721d6841d5c0c2041e986a9aca2a8d
parentaa2a6871ee93e5dc86f243045af91fac90f142bf (diff)
2000-06-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--configure.in5
-rw-r--r--time.c5
3 files changed, 12 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index bae4ed0a5a..a04008efff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
+Wed Jun 14 14:07:38 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
+
+ * io.c: typo(ig/if).
+
+ * re.c: typo(re/reg). add rb_reg_check().
+
+ * time.c: remove unneeded declare(daylight, timezone).
+
Wed Jun 14 00:50:14 2000 Wakou Aoyama <wakou@fsinet.or.jp>
- * lib/cig.rb: read_multipart(): if no content body then raise EOFError.
+ * lib/cgi.rb: read_multipart(): if no content body then raise EOFError.
Tue Jun 13 11:46:17 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
diff --git a/configure.in b/configure.in
index 86233ea338..03d8f7980e 100644
--- a/configure.in
+++ b/configure.in
@@ -210,8 +210,9 @@ AC_CHECK_FUNCS(fmod killpg drand48 random wait4 waitpid syscall getcwd\
dlopen sigprocmask sigaction _setjmp setsid getrlimit)
AC_STRUCT_TIMEZONE
AC_CACHE_CHECK(for external int daylight, rb_cv_have_daylight,
- [AC_TRY_LINK([int i;],
- [extern int daylight; i = daylight;],
+ [AC_TRY_LINK([#include <time.h>
+ int i;],
+ [i = daylight;],
rb_cv_have_daylight=yes,
rb_cv_have_daylight=no)])
if test "$rb_cv_have_daylight" = yes; then
diff --git a/time.c b/time.c
index fd2c4a8368..ad4ca24630 100644
--- a/time.c
+++ b/time.c
@@ -272,11 +272,6 @@ static VALUE time_gmtime _((VALUE));
static VALUE time_localtime _((VALUE));
static VALUE time_get_tm _((VALUE, int));
-#if defined(HAVE_DAYLIGHT) && !defined(__MINGW32__)
-extern int daylight;
-extern long timezone;
-#endif
-
static time_t
make_time_t(tptr, utc_or_local)
struct tm *tptr;