summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/tar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 545081a..64a4e35 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -504,6 +504,9 @@ static int writeFileToTarball(const char *fileName, struct stat *statbuf,
}
#if ENABLE_FEATURE_TAR_GZIP || ENABLE_FEATURE_TAR_BZIP2
+#if !(ENABLE_FEATURE_TAR_GZIP && ENABLE_FEATURE_TAR_BZIP2)
+#define vfork_compressor(tar_fd, gzip) vfork_compressor(tar_fd)
+#endif
/* Don't inline: vfork scares gcc and pessimizes code */
static void NOINLINE vfork_compressor(int tar_fd, int gzip)
{