ruby-changes:27721
From: kosaki <ko1@a...>
Date: Sat, 16 Mar 2013 14:07:20 +0900 (JST)
Subject: [ruby-changes:27721] kosaki:r39773 (trunk): * include/ruby/missing.h (struct timespec): include <sys/time.h>
kosaki 2013-03-16 14:07:02 +0900 (Sat, 16 Mar 2013) New Revision: 39773 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39773 Log: * include/ruby/missing.h (struct timespec): include <sys/time.h> Modified files: trunk/ChangeLog trunk/include/ruby/missing.h Index: include/ruby/missing.h =================================================================== --- include/ruby/missing.h (revision 39772) +++ include/ruby/missing.h (revision 39773) @@ -42,6 +42,9 @@ struct timeval { https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L42 #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 */ Index: ChangeLog =================================================================== --- ChangeLog (revision 39772) +++ ChangeLog (revision 39773) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Mar 13 14:38:53 2013 KOSAKI Motohiro <kosaki.motohiro@g...> + + * include/ruby/missing.h (struct timespec): include <sys/time.h> + Wed Mar 13 13:54:45 2013 KOSAKI Motohiro <kosaki.motohiro@g...> * configure.in: check struct timeval exist or not. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/