File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change
1
+ Wed Jan 7 10:06:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
+
3
+ * eval.c (timeofday): use monotonic clock. based on a patch
4
+ from zimbatm <zimbatm@oree.ch> in [ruby-core:16627].
5
+
1
6
Tue Jan 6 09:02:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
7
3
8
* parse.y (yylex): 8 and 9 in octal integer should cause compile
Original file line number Diff line number Diff line change 472
472
AC_CHECK_LIB(crypt, crypt)
473
473
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
474
474
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
475
+ AC_CHECK_LIB(rt, clock_gettime) # GNU/Linux
475
476
476
477
case "$target_cpu" in
477
478
alpha*) case "$target_os"::"$GCC" in
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ char *strrchr _((const char*,const char));
72
72
#include <unistd.h>
73
73
#endif
74
74
75
+ #include <time.h>
76
+
75
77
#ifdef __BEOS__
76
78
#include <net/socket.h>
77
79
#endif
@@ -10080,6 +10082,13 @@ static double
10080
10082
timeofday ()
10081
10083
{
10082
10084
struct timeval tv ;
10085
+ #ifdef CLOCK_MONOTONIC
10086
+ struct timespec tp ;
10087
+
10088
+ if (clock_gettime (CLOCK_MONOTONIC , & tp ) == 0 ) {
10089
+ return (double )tp .tv_sec + (double )tp .tv_nsec * 1e-9 ;
10090
+ }
10091
+ #endif
10083
10092
gettimeofday (& tv , NULL );
10084
10093
return (double )tv .tv_sec + (double )tv .tv_usec * 1e-6 ;
10085
10094
}
Original file line number Diff line number Diff line change 1
1
#define RUBY_VERSION "1.8.6"
2
- #define RUBY_RELEASE_DATE "2009-01-06 "
2
+ #define RUBY_RELEASE_DATE "2009-01-07 "
3
3
#define RUBY_VERSION_CODE 186
4
- #define RUBY_RELEASE_CODE 20090106
5
- #define RUBY_PATCHLEVEL 291
4
+ #define RUBY_RELEASE_CODE 20090107
5
+ #define RUBY_PATCHLEVEL 292
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
9
9
#define RUBY_VERSION_TEENY 6
10
10
#define RUBY_RELEASE_YEAR 2009
11
11
#define RUBY_RELEASE_MONTH 1
12
- #define RUBY_RELEASE_DAY 6
12
+ #define RUBY_RELEASE_DAY 7
13
13
14
14
#ifdef RUBY_EXTERN
15
15
RUBY_EXTERN const char ruby_version [];
You can’t perform that action at this time.
0 commit comments