From c495301bf8cd3a05512e702af212631abab52b88 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 16 Mar 2006 08:14:34 +1100 Subject: - (dtucker) [configure.ac md-sha256.c] NetBSD has sha2.h in /usr/include/crypto. Hint from djm@. --- md-sha256.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'md-sha256.c') diff --git a/md-sha256.c b/md-sha256.c index ff7f38157..0b1ed5828 100644 --- a/md-sha256.c +++ b/md-sha256.c @@ -22,8 +22,12 @@ #include #include -#if defined(HAVE_SHA2_H) && defined(HAVE_SHA256_UPDATE) -# include +#ifdef HAVE_SHA256_UPDATE +# ifdef HAVE_SHA2_H +# include +# elif defined(HAVE_CRYPTO_SHA2_H) +# include +# endif #endif RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $"); -- cgit v1.2.3