From 23a4f81625f2d950f8045145f22d2680b0d96b02 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 12 Jan 2010 21:54:47 +0000 Subject: * configure.in: check for if struct timezone is defined. * missing.h (struct timezone): define if not defined. * win32/win32.h (struct timezone): defined in the newer w32api. [ruby-core:27515] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/missing.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/ruby/missing.h') diff --git a/include/ruby/missing.h b/include/ruby/missing.h index d553f1c738..4a90032632 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -38,6 +38,13 @@ struct timespec { }; #endif +#if !defined(HAVE_STRUCT_TIMEZONE) +struct timezone { + int tz_minuteswest; + int tz_dsttime; +}; +#endif + #ifndef RUBY_EXTERN #define RUBY_EXTERN extern #endif -- cgit v1.2.3