summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-22 12:36:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-22 12:36:11 +0000
commit508ca62a6c9deb20603a8b2678bd5db35c4e6de1 (patch)
tree295ca0672c204d44513aee4125850ddc376e46ca /ext
parent29860b0bbbaba0175d552846575c0784bb4e1fcb (diff)
* ext/digest/sha2/sha2init.c: test OpenSSL more strictly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/digest/sha2/sha2init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/sha2/sha2init.c b/ext/digest/sha2/sha2init.c
index fca33185d8..25ef6d2546 100644
--- a/ext/digest/sha2/sha2init.c
+++ b/ext/digest/sha2/sha2init.c
@@ -2,7 +2,7 @@
/* $Id$ */
#include "digest.h"
-#if defined(HAVE_OPENSSL_SHA_H)
+#if defined(HAVE_OPENSSL_SHA_H) && defined(HAVE_SHA256_TRANSFORM) && defined(HAVE_SHA512_TRANSFORM)
#include "sha2ossl.h"
#else
#include "sha2.h"