From: Michihiro NAKAJIMA Date: Tue, 18 Jan 2011 09:53:33 +0000 (-0500) Subject: Fix build warning on the platform which does not have getvfsbyname(). X-Git-Tag: v3.0.0a~747 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b93de0f2edc01cbd728a48fb614fc895304c88c;p=thirdparty%2Flibarchive.git Fix build warning on the platform which does not have getvfsbyname(). SVN-Revision: 2915 --- diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c index cdebdbed8..7bb085be4 100644 --- a/libarchive/archive_read_disk_posix.c +++ b/libarchive/archive_read_disk_posix.c @@ -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;