ruby-changes:27729
From: nobu <ko1@a...>
Date: Sun, 17 Mar 2013 00:16:47 +0900 (JST)
Subject: [ruby-changes:27729] nobu:r39781 (trunk): missing.h: build fix
nobu 2013-03-17 00:16:32 +0900 (Sun, 17 Mar 2013) New Revision: 39781 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39781 Log: 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. Modified files: trunk/include/ruby/missing.h Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 39780) +++ include/ruby/missing.h (revision 39781) @@ -25,12 +25,14 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L25 #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 { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/