Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE block
authorEric Andersen <andersen@codepoet.org>
Sat, 27 Oct 2001 03:20:00 +0000 (03:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 27 Oct 2001 03:20:00 +0000 (03:20 -0000)
archival/tar.c

index 9459a506143e58aa70159cc3dbf999eedb73ddf9..8159497673225c0eda81fbaa345e57c83ef80738 100644 (file)
@@ -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)
 {