From: Robert Haas Date: Fri, 28 Jan 2022 14:02:18 +0000 (-0500) Subject: Fix mistakes in commit d45099425eb19e420433c9d81d354fe585f4dbd6. X-Git-Tag: REL_15_BETA1~811 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da505eafca81bc81c34f729521a42a093408cb92;p=thirdparty%2Fpostgresql.git 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. --- 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.