[glib] glocalfile: don't bother with fstype on win32



commit 633fd86815fafa0ffb9cd0d8e5b958b0d3abe141
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Jul 26 11:20:12 2011 +0200

    glocalfile: don't bother with fstype on win32
    
    Fixes the broken build on Windows.

 gio/glocalfile.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 4143fbe..bc810bf 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -992,6 +992,8 @@ g_local_file_query_filesystem_info (GFile         *file,
 #endif
 #endif
     }
+
+#ifndef G_OS_WIN32
 #ifdef USE_STATFS
 #if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME)
   fstype = g_strdup(statfs_buffer.f_fstypename);
@@ -1005,7 +1007,6 @@ g_local_file_query_filesystem_info (GFile         *file,
   fstype = NULL;
 #endif
 
-#ifndef G_OS_WIN32
   if (fstype &&
       g_file_attribute_matcher_matches (attribute_matcher,
 					G_FILE_ATTRIBUTE_FILESYSTEM_TYPE))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]