2008-05-27 simon.zheng <simon.zheng@sun.com>
* configure.in: Fix #533369. Check whether memeber statvfs.f_basetype
available or not.
* gio/glocalfile.c: (g_local_file_query_filesystem_info):
Fix #533369. Make G_FILE_ATTRIBUTE_FILESYSTEM_TYPE work on Solaris.
svn path=/trunk/; revision=6939
+2008-05-27 simon.zheng <simon.zheng@sun.com>
+
+ * configure.in: Fix #533369. Check whether memeber statvfs.f_basetype
+ available or not.
+
2008-05-27 Matthias Clasen <mclasen@redhat.com>
* glib/pcre/*: Update to PCRE 7.7
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif])
+# struct statvfs.f_basetype is available on Solaris but not for Linux.
+AC_CHECK_MEMBERS([struct statvfs.f_basetype],,, [#include <sys/statvfs.h>])
# Checks for libcharset
AM_LANGINFO_CODESET
+2008-05-27 simon.zheng <simon.zheng@sun.com>
+
+ * glocalfile.c: (g_local_file_query_filesystem_info):
+ Fix #533369. Make G_FILE_ATTRIBUTE_FILESYSTEM_TYPE work on Solaris.
+
2008-05-26 Michael Natterer <mitch@imendio.com>
* gmemoryoutputstream.h: declare
gboolean no_size;
#ifndef G_OS_WIN32
guint64 block_size;
+ const char *fstype;
#ifdef USE_STATFS
struct statfs statfs_buffer;
- const char *fstype;
#elif defined(USE_STATVFS)
struct statvfs statfs_buffer;
#endif
#else
fstype = get_fs_type (statfs_buffer.f_type);
#endif
+
+#elif defined(USE_STATVFS) && defined(HAVE_STRUCT_STATVFS_F_BASETYPE)
+ fstype = g_strdup(statfs_buffer.f_basetype);
+#endif
+
+#ifndef G_OS_WIN32
if (fstype &&
g_file_attribute_matcher_matches (attribute_matcher,
G_FILE_ATTRIBUTE_FILESYSTEM_TYPE))