summaryrefslogtreecommitdiff
path: root/missing.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-12 21:54:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-12 21:54:47 +0000
commita0006c109c518b3bd395d33d458e50808b84e87f (patch)
tree46b43e0632dd0f7a41c0099d03a48e1718cac66c /missing.h
parent51e3a6b5259faa47392bea943b9c4c4109fe36cd (diff)
* 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/branches/ruby_1_8@26311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
-rw-r--r--missing.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/missing.h b/missing.h
index 5607a0bfd5..1961383e75 100644
--- a/missing.h
+++ b/missing.h
@@ -25,6 +25,13 @@ struct timeval {
# include <sys/types.h>
#endif
+#if !defined(HAVE_STRUCT_TIMEZONE)
+struct timezone {
+ int tz_minuteswest;
+ int tz_dsttime;
+};
+#endif
+
#ifndef RUBY_EXTERN
#define RUBY_EXTERN extern
#endif