diff options
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r-- | include/ruby/missing.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 007c546617..05002daea8 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -25,13 +25,20 @@ extern "C" { # define time_t long struct timeval { time_t tv_sec; /* seconds */ - time_t tv_usec; /* microseconds */ + long tv_usec; /* microseconds */ }; #endif #if defined(HAVE_SYS_TYPES_H) # include <sys/types.h> #endif +#if !defined(HAVE_STRUCT_TIMESPEC) +struct timespec { + time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; +#endif + #ifndef HAVE_ACOSH extern double acosh(double); extern double asinh(double); |