diff options
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r-- | include/ruby/missing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index fc333e1a47..9b502cd3d8 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -25,12 +25,14 @@ extern "C" { #include RUBY_EXTCONF_H #endif +#if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC) #if defined(HAVE_TIME_H) # include <time.h> #endif #if defined(HAVE_SYS_TIME_H) # include <sys/time.h> #endif +#endif #if !defined(HAVE_STRUCT_TIMEVAL) struct timeval { |