aboutsummaryrefslogtreecommitdiff
path: root/archival/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/tar.c')
-rw-r--r--archival/tar.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 6c1591bdc..3b8777414 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -698,20 +698,22 @@ static NOINLINE int writeTarFile(
698 const char *gzip) 698 const char *gzip)
699{ 699{
700 int errorFlag = FALSE; 700 int errorFlag = FALSE;
701 IF_PLATFORM_MINGW32(pid_t pid = 0;) 701# if SEAMLESS_COMPRESSION && ENABLE_PLATFORM_MINGW32
702 pid_t pid = 0;
703# endif
702 704
703 /*tbInfo->hlInfoHead = NULL; - already is */ 705 /*tbInfo->hlInfoHead = NULL; - already is */
704 706
705#if ENABLE_PLATFORM_POSIX || ENABLE_FEATURE_EXTRA_FILE_DATA 707# if ENABLE_PLATFORM_POSIX || ENABLE_FEATURE_EXTRA_FILE_DATA
706 /* Store the stat info for the tarball's file, so 708 /* Store the stat info for the tarball's file, so
707 * can avoid including the tarball into itself.... */ 709 * can avoid including the tarball into itself.... */
708 xfstat(tbInfo->tarFd, &tbInfo->tarFileStatBuf, "can't stat tar file"); 710 xfstat(tbInfo->tarFd, &tbInfo->tarFileStatBuf, "can't stat tar file");
709#endif 711# endif
710 712
711# if SEAMLESS_COMPRESSION 713# if SEAMLESS_COMPRESSION
712 if (gzip) 714 if (gzip)
713 IF_PLATFORM_MINGW32(pid = )vfork_compressor(tbInfo->tarFd, gzip); 715 IF_PLATFORM_MINGW32(pid = )vfork_compressor(tbInfo->tarFd, gzip);
714#endif 716# endif
715 717
716 /* Read the directory/files and iterate over them one at a time */ 718 /* Read the directory/files and iterate over them one at a time */
717 while (filelist) { 719 while (filelist) {