summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-bd
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18-base/patches/patch-bd')
-rw-r--r--lang/ruby18-base/patches/patch-bd28
1 files changed, 28 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-bd b/lang/ruby18-base/patches/patch-bd
new file mode 100644
index 00000000000..a495b74052a
--- /dev/null
+++ b/lang/ruby18-base/patches/patch-bd
@@ -0,0 +1,28 @@
+$NetBSD: patch-bd,v 1.1 2005/11/02 08:56:40 taca Exp $
+
+--- ext/openssl/ossl.c.orig 2005-09-10 09:54:29.000000000 +0900
++++ ext/openssl/ossl.c
+@@ -278,9 +278,14 @@ ossl_raise(VALUE exc, const char *fmt, .
+ va_list args;
+ char buf[BUFSIZ];
+ const char *msg;
+- long e = ERR_peek_last_error();
++ long e;
+ int len = 0;
+
++#ifdef HAVE_ERR_PEEK_LAST_ERROR
++ e = ERR_peek_last_error();
++#else
++ e = ERR_peek_error();
++#endif
+ if (fmt) {
+ va_start(args, fmt);
+ len = vsnprintf(buf, BUFSIZ, fmt, args);
+@@ -382,6 +387,7 @@ Init_openssl()
+ */
+ /* CRYPTO_malloc_init(); */
+ /* ENGINE_load_builtin_engines(); */
++ OpenSSL_add_ssl_algorithms();
+ OpenSSL_add_all_algorithms();
+ ERR_load_crypto_strings();
+ SSL_load_error_strings();