diff options
author | Alvaro Herrera | 2007-01-14 20:55:14 +0000 |
---|---|---|
committer | Alvaro Herrera | 2007-01-14 20:55:14 +0000 |
commit | 4fbbfe09ded668806dc2fff4ea9ad5998a3419b0 (patch) | |
tree | a720eede8cfeb2b7d0f88d0cfff74206a93172ed | |
parent | c6690020ca4b9055124e197e57bd665ab92fc94a (diff) |
Replace unnecessary DISABLE_ZLIB define in pgcrypto with HAVE_LIBZ from core.
Patch from Marko Kreen.
-rw-r--r-- | contrib/pgcrypto/Makefile | 4 | ||||
-rw-r--r-- | contrib/pgcrypto/pgp-compress.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 55139f21ca..b800d9450a 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -9,17 +9,13 @@ INT_TESTS = sha2 OSSL_SRCS = openssl.c pgp-mpi-openssl.c OSSL_TESTS = sha2 des 3des cast5 -ZLIB_OFF_CFLAGS = -DDISABLE_ZLIB ZLIB_TST = pgp-compression ZLIB_OFF_TST = pgp-zlib-DISABLED CF_SRCS = $(if $(subst no,,$(with_openssl)), $(OSSL_SRCS), $(INT_SRCS)) CF_TESTS = $(if $(subst no,,$(with_openssl)), $(OSSL_TESTS), $(INT_TESTS)) -CF_CFLAGS = $(if $(subst yes,,$(with_zlib)), $(ZLIB_OFF_CFLAGS)) CF_PGP_TESTS = $(if $(subst no,,$(with_zlib)), $(ZLIB_TST), $(ZLIB_OFF_TST)) -PG_CPPFLAGS = $(CF_CFLAGS) - SRCS = pgcrypto.c px.c px-hmac.c px-crypt.c \ crypt-gensalt.c crypt-blowfish.c crypt-des.c \ crypt-md5.c $(CF_SRCS) \ diff --git a/contrib/pgcrypto/pgp-compress.c b/contrib/pgcrypto/pgp-compress.c index ceb6fdf3cf..9d1cae5619 100644 --- a/contrib/pgcrypto/pgp-compress.c +++ b/contrib/pgcrypto/pgp-compress.c @@ -40,7 +40,7 @@ * Compressed pkt writer */ -#ifndef DISABLE_ZLIB +#ifdef HAVE_LIBZ #include <zlib.h> @@ -312,7 +312,8 @@ pgp_decompress_filter(PullFilter ** res, PGP_Context * ctx, PullFilter * src) { return pullf_create(res, &decompress_filter, ctx, src); } -#else /* DISABLE_ZLIB */ + +#else /* !HAVE_ZLIB */ int pgp_compress_filter(PushFilter ** res, PGP_Context * ctx, PushFilter * dst) |