From ed6055474b35fd00272de0d1268edaf904a164cb Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 15 Jul 2013 10:48:11 +0400 Subject: [PATCH] Ticket #3041: fix build failure on Cygwin: redefinition of 'statvfs_works'. Signed-off-by: Andrew Borodin --- src/filemanager/filegui.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/filemanager/filegui.c b/src/filemanager/filegui.c index 9114e52cd..fcb602ec9 100644 --- a/src/filemanager/filegui.c +++ b/src/filemanager/filegui.c @@ -98,18 +98,7 @@ #define STRUCT_STATVFS struct statvfs #define STATFS statvfs -/* Return true if statvfs works. This is false for statvfs on systems - with GNU libc on Linux kernels before 2.6.36, which stats all - preceding entries in /proc/mounts; that makes df hang if even one - of the corresponding file systems is hard-mounted but not available. */ -#if ! (__linux__ && (__GLIBC__ || __UCLIBC__)) -static int -statvfs_works (void) -{ - return 1; -} -#else - +#if __linux__ && (__GLIBC__ || __UCLIBC__) #include #include #define STAT_STATFS2_BSIZE 1