summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen2001-10-27 03:20:00 +0000
committerEric Andersen2001-10-27 03:20:00 +0000
commitc265b17550dc90237c7dc03da7b58ceea8c74bbf (patch)
tree03475744acb5b65a94debb716127b0461d50b094 /archival
parent087bc82bb0eabf8dedb8b35c85ea0294eaae2ce3 (diff)
downloadbusybox-c265b17550dc90237c7dc03da7b58ceea8c74bbf.zip
busybox-c265b17550dc90237c7dc03da7b58ceea8c74bbf.tar.gz
Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE block
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 9459a50..8159497 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -315,6 +315,7 @@ writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name,
return ( TRUE);
}
+# if defined CONFIG_FEATURE_TAR_EXCLUDE
static int exclude_file(char **excluded_files, const char *file)
{
int i;
@@ -341,6 +342,7 @@ static int exclude_file(char **excluded_files, const char *file)
return 0;
}
+#endif
static int writeFileToTarball(const char *fileName, struct stat *statbuf, void* userData)
{