]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build warning on the platform which does not have getvfsbyname().
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 18 Jan 2011 09:53:33 +0000 (04:53 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 18 Jan 2011 09:53:33 +0000 (04:53 -0500)
SVN-Revision: 2915

libarchive/archive_read_disk_posix.c

index cdebdbed841008acbfa4e4543dcb908889530870..7bb085be447c077ba3fa118da5ef822e4dfd49d7 100644 (file)
@@ -1135,7 +1135,9 @@ setup_current_filesystem(struct archive_read_disk *a)
 {
        struct tree *t = a->tree;
        struct statfs sfs;
+#if defined(HAVE_GETVFSBYNAME) && defined(VFCF_SYNTHETIC)
        struct xvfsconf vfc;
+#endif
        int r, xr = 0;
 #if !defined(HAVE_STRUCT_STATFS_F_NAMEMAX)
        long nm;