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
This commit is contained in:
parent
090a6ca4e9
commit
7c14f03c0c
@ -25,12 +25,14 @@ extern "C" {
|
|||||||
#include RUBY_EXTCONF_H
|
#include RUBY_EXTCONF_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC)
|
||||||
#if defined(HAVE_TIME_H)
|
#if defined(HAVE_TIME_H)
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_SYS_TIME_H)
|
#if defined(HAVE_SYS_TIME_H) && !defined(__linux__)
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STRUCT_TIMEVAL)
|
#if !defined(HAVE_STRUCT_TIMEVAL)
|
||||||
struct timeval {
|
struct timeval {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user