Fix mistakes in commit d45099425e.

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.
This commit is contained in:
Robert Haas 2022-01-28 09:02:18 -05:00
parent d45099425e
commit da505eafca
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
#include "postgres_fe.h"
#include <unistd.h>
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif

View File

@ -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.