aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-01-25 15:39:15 +0000
committerRon Yorston <rmy@pobox.com>2021-01-25 15:39:15 +0000
commit48684e182f2e6195af191be00ccf08788d91db7a (patch)
tree5738a925ca7418340045765bbbd2ad6dfecbb1e0
parent4c3677b8875323e5f844d1fd47feaf0dbd58c8fa (diff)
downloadbusybox-w32-48684e182f2e6195af191be00ccf08788d91db7a.tar.gz
busybox-w32-48684e182f2e6195af191be00ccf08788d91db7a.tar.bz2
busybox-w32-48684e182f2e6195af191be00ccf08788d91db7a.zip
tar: changes to conditional compilation
Mostly just cosmetic.
-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) {