summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 07:48:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 07:48:04 +0000
commitb0283eed4377fee555ac7703a5d329092d018f04 (patch)
treeabd2bf52e324194846d7d2316c947a6cfef26740
parentb6151bcebe327a8f8a2cfd6c708f2fb2fc4c77a7 (diff)
* ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
Solaris compiler. [ruby-core:08114] * time.c (time_to_s): use +0900 style timezone string for local time. [ruby-dev:29143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--ext/openssl/ossl.h18
-rw-r--r--time.c2
3 files changed, 15 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e51df585c..1530646d06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
-Thu Jul 27 09:02:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jul 27 16:41:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
- * time.c (time_to_s): generate RFC822 style date string.
+ * ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
+ Solaris compiler. [ruby-core:08114]
+
+ * time.c (time_to_s): use +0900 style timezone string for local time.
[ruby-dev:29143]
Wed Jul 26 22:20:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index 5ab93bf39e..0366901a35 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -18,6 +18,15 @@ extern "C" {
#endif
/*
+* OpenSSL has defined RFILE and Ruby has defined RFILE - so undef it!
+*/
+#if defined(RFILE) /*&& !defined(OSSL_DEBUG)*/
+# undef RFILE
+#endif
+#include <ruby.h>
+#include <rubyio.h>
+
+/*
* Check the OpenSSL version
* The only supported are:
* OpenSSL >= 0.9.7
@@ -61,15 +70,6 @@ extern "C" {
#endif
/*
- * OpenSSL has defined RFILE and Ruby has defined RFILE - so undef it!
- */
-#if defined(RFILE) /*&& !defined(OSSL_DEBUG)*/
-# undef RFILE
-#endif
-#include <ruby.h>
-#include <rubyio.h>
-
-/*
* Common Module
*/
extern VALUE mOSSL;
diff --git a/time.c b/time.c
index d68c1dfee3..e8c6924384 100644
--- a/time.c
+++ b/time.c
@@ -1219,7 +1219,7 @@ time_to_s(VALUE time)
sign = '-';
off = -off;
}
- sprintf(buf2, "%%a %%b %%d %%Y %%H:%%M:%%S %c%02d%02d",
+ sprintf(buf2, "%%a %%b %%d %%H:%%M:%%S %c%02d%02d %%Y",
sign, off/3600, off%3600/60);
len = strftime(buf, 128, buf2, &tobj->tm);
}