Skip to content

Commit a2d8727

Browse files
committed
merge revision(s) 14316:
* configure.in (TIMEZONE_VOID): check whether timezone requires zero arguments. [ruby-dev:32631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b09f1c5 commit a2d8727

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sun Jun 8 05:54:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
4+
arguments. [ruby-dev:32631]
5+
16
Sun Jun 8 05:37:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* parse.y (f_rest_arg): check if duplicated. [ruby-core:14140]

configure.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,17 @@ RUBY_CHECK_VARTYPE(timezone, [#include <time.h>], [long int])
595595
RUBY_CHECK_VARTYPE(altzone, [#include <time.h>], [long int])
596596
if test "$rb_cv_var_timezone" = no; then
597597
AC_CHECK_FUNCS(timezone)
598+
if test "$ ac_cv_func_timezone" = yes; then
599+
AC_CACHE_CHECK([whether timezone requires zero arguments], rb_cv_func_timezone_void,
600+
[AC_TRY_COMPILE([#include <time.h>],
601+
[(void)timezone(0, 0);],
602+
[rb_cv_func_timezone_void=no],
603+
[rb_cv_func_timezone_void=yes])]
604+
)
605+
if test $rb_cv_func_timezone_void = yes; then
606+
AC_DEFINE(TIMEZONE_VOID)
607+
fi
608+
fi
598609
fi
599610

600611
AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t,

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 161
5+
#define RUBY_PATCHLEVEL 162
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)