aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2022-01-28 09:02:18 -0500
committerRobert Haas <rhaas@postgresql.org>2022-01-28 09:02:18 -0500
commitda505eafca81bc81c34f729521a42a093408cb92 (patch)
tree5d21c25e476f9bfa1d0b7c930ef2d45bb9fea52f
parentd45099425eb19e420433c9d81d354fe585f4dbd6 (diff)
downloadpostgresql-da505eafca81bc81c34f729521a42a093408cb92.tar.gz
postgresql-da505eafca81bc81c34f729521a42a093408cb92.zip
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 <unistd.h> to avoid complaints about dup() not having a prototype, as per buildfarm returns.
-rw-r--r--src/bin/pg_basebackup/bbstreamer_gzip.c2
-rw-r--r--src/bin/pg_verifybackup/t/009_extract.pl2
2 files changed, 3 insertions, 1 deletions
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 <unistd.h>
+
#ifdef HAVE_LIBZ
#include <zlib.h>
#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.