summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 15:16:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-16 15:16:32 +0000
commit7c14f03c0cd5ed10581c4657604df94bd6e0f2be (patch)
treec31bd453fa670895a47dd2cbae991118aa73848d /include/ruby/missing.h
parent090a6ca4e9382e811404a15e099d55d1c1bd833d (diff)
missing.h: build fix
* include/ruby/missing.h: include time.h and sys/time.h iff needed, but excepct for sys/time.h on linux to get rid of glibc bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index fc333e1a474..cf97ca21334 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)
+#if defined(HAVE_SYS_TIME_H) && !defined(__linux__)
# include <sys/time.h>
#endif
+#endif
#if !defined(HAVE_STRUCT_TIMEVAL)
struct timeval {