From da505eafca81bc81c34f729521a42a093408cb92 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 28 Jan 2022 09:02:18 -0500 Subject: [PATCH] Fix mistakes in commit d45099425eb19e420433c9d81d354fe585f4dbd6. I intended to include a change to the "skip" count in the test case, but it didn't get folded into the commit. Do that now, so that non-zlib builds don't break. The new file bbstreamer_gzip.c needs to avoid complaints about dup() not having a prototype, as per buildfarm returns. --- src/bin/pg_basebackup/bbstreamer_gzip.c | 2 ++ src/bin/pg_verifybackup/t/009_extract.pl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/bbstreamer_gzip.c b/src/bin/pg_basebackup/bbstreamer_gzip.c index 2c16e628825..894f8571038 100644 --- a/src/bin/pg_basebackup/bbstreamer_gzip.c +++ b/src/bin/pg_basebackup/bbstreamer_gzip.c @@ -11,6 +11,8 @@ #include "postgres_fe.h" +#include + #ifdef HAVE_LIBZ #include #endif diff --git a/src/bin/pg_verifybackup/t/009_extract.pl b/src/bin/pg_verifybackup/t/009_extract.pl index f1091ffea7a..51b77e4bfe6 100644 --- a/src/bin/pg_verifybackup/t/009_extract.pl +++ b/src/bin/pg_verifybackup/t/009_extract.pl @@ -36,7 +36,7 @@ for my $tc (@test_configuration) my $method = $tc->{'compression_method'}; SKIP: { - skip "$method compression not supported by this build", 3 + skip "$method compression not supported by this build", 2 if ! $tc->{'enabled'}; # Take backup with server compression enabled.