summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 4a19cc78472..616e699ad5d 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -42,6 +42,9 @@ struct timeval {
#endif
#if !defined(HAVE_STRUCT_TIMESPEC)
+# if defined(HAVE_SYS_TIME_H)
+# include <sys/time.h>
+# endif
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */