Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita62e2c2

Browse files
committed
Replace unnecessary DISABLE_ZLIB define in pgcrypto with HAVE_LIBZ from core.
Patch from Marko Kreen.
1 parent2f8f76b commita62e2c2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎contrib/pgcrypto/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.24 2006/07/13 04:15:24 neilc Exp $
2+
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.25 2007/01/14 20:55:14 alvherre Exp $
33
#
44

55
INT_SRCS = md5.c sha1.c sha2.c internal.c internal-sha2.c blf.c rijndael.c\
@@ -9,17 +9,13 @@ INT_TESTS = sha2
99
OSSL_SRCS = openssl.c pgp-mpi-openssl.c
1010
OSSL_TESTS = sha2 des 3des cast5
1111

12-
ZLIB_OFF_CFLAGS = -DDISABLE_ZLIB
1312
ZLIB_TST = pgp-compression
1413
ZLIB_OFF_TST = pgp-zlib-DISABLED
1514

1615
CF_SRCS =$(if$(subst no,,$(with_openssl)),$(OSSL_SRCS),$(INT_SRCS))
1716
CF_TESTS =$(if$(subst no,,$(with_openssl)),$(OSSL_TESTS),$(INT_TESTS))
18-
CF_CFLAGS =$(if$(subst yes,,$(with_zlib)),$(ZLIB_OFF_CFLAGS))
1917
CF_PGP_TESTS =$(if$(subst no,,$(with_zlib)),$(ZLIB_TST),$(ZLIB_OFF_TST))
2018

21-
PG_CPPFLAGS=$(CF_CFLAGS)
22-
2319
SRCS= pgcrypto.c px.c px-hmac.c px-crypt.c\
2420
crypt-gensalt.c crypt-blowfish.c crypt-des.c\
2521
crypt-md5.c$(CF_SRCS)\

‎contrib/pgcrypto/pgp-compress.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-compress.c,v 1.5 2005/10/15 02:49:06 momjian Exp $
29+
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-compress.c,v 1.6 2007/01/14 20:55:14 alvherre Exp $
3030
*/
3131

3232
#include"postgres.h"
@@ -40,7 +40,7 @@
4040
* Compressed pkt writer
4141
*/
4242

43-
#ifndefDISABLE_ZLIB
43+
#ifdefHAVE_LIBZ
4444

4545
#include<zlib.h>
4646

@@ -312,7 +312,8 @@ pgp_decompress_filter(PullFilter ** res, PGP_Context * ctx, PullFilter * src)
312312
{
313313
returnpullf_create(res,&decompress_filter,ctx,src);
314314
}
315-
#else/* DISABLE_ZLIB */
315+
316+
#else/* !HAVE_ZLIB */
316317

317318
int
318319
pgp_compress_filter(PushFilter**res,PGP_Context*ctx,PushFilter*dst)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp