From 03a6ce80d04dd386a8514faf4abc86b3ea290a68 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 16 Mar 2013 05:07:02 +0000 Subject: * include/ruby/missing.h (struct timespec): include git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/missing.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 4a19cc7847..616e699ad5 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 +# endif struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ -- cgit v1.2.3