From d995f01f67ba20828c2ece2614887ff86ce512a9 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Fri, 2 Jun 2006 10:03:16 +0000 Subject: * ext/openssl/extconf.rb: use create_header. * ext/openssl/ossl.h, ext/openssl/openssl_missing.h: include RUBY_EXTCONF_H. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/extconf.rb | 2 ++ ext/openssl/openssl_missing.c | 4 ++++ ext/openssl/ossl.h | 2 ++ 3 files changed, 8 insertions(+) (limited to 'ext') diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 04c86e7505..11f74ff3d8 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -117,5 +117,7 @@ have_struct_member("EVP_CIPHER_CTX", "engine", "openssl/evp.h") have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h") message "=== Checking done. ===\n" + +create_header create_makefile("openssl") message "Done.\n" diff --git a/ext/openssl/openssl_missing.c b/ext/openssl/openssl_missing.c index 3b8083c257..f77731ed65 100644 --- a/ext/openssl/openssl_missing.c +++ b/ext/openssl/openssl_missing.c @@ -8,6 +8,8 @@ * This program is licenced under the same licence as Ruby. * (See the file 'LICENCE'.) */ +#include RUBY_EXTCONF_H + #if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ST_ENGINE) # include #endif @@ -17,6 +19,8 @@ #include /* memcpy() */ #include +#include "openssl_missing.h" + #if !defined(HAVE_HMAC_CTX_COPY) int HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in) diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 56b3b2ec18..5ab93bf39e 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -11,6 +11,8 @@ #if !defined(_OSSL_H_) #define _OSSL_H_ +#include RUBY_EXTCONF_H + #if defined(__cplusplus) extern "C" { #endif -- cgit v1.2.3