summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 05:07:02 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 05:07:02 +0000
commit03a6ce80d04dd386a8514faf4abc86b3ea290a68 (patch)
tree238ed5d23cf663c7791294c62d79f196343c6336
parent798ff850e41752834bd27081c2e85f874b2cc4aa (diff)
* include/ruby/missing.h (struct timespec): include <sys/time.h>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--include/ruby/missing.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 24d607fad9c..385b4407f9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Mar 13 14:38:53 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * include/ruby/missing.h (struct timespec): include <sys/time.h>
+
Wed Mar 13 13:54:45 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: check struct timeval exist or not.
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 */