Commit 3cacbe81 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Use struct statfs.f_fstypename if availible (e.g. on OpenBSD) Patch from

2008-03-07  Alexander Larsson  <alexl@redhat.com>

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use struct statfs.f_fstypename if availible (e.g. on OpenBSD)
	Patch from Jasper Lievisse Adriaanse


svn path=/trunk/; revision=6638
parent c2cb0a5a
2008-03-07 Alexander Larsson <alexl@redhat.com>
* configure.in:
Look for struct statfs.f_fstypename
2008-03-07 Tor Lillqvist <tml@novell.com>
* README.win32: Updates.
......
......@@ -839,7 +839,7 @@ AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h f
# check for structure fields
AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks])
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename])
# Checks for libcharset
jm_LANGINFO_CODESET
......
2008-03-07 Alexander Larsson <alexl@redhat.com>
* glocalfile.c:
(g_local_file_query_filesystem_info):
Use struct statfs.f_fstypename if availible (e.g. on OpenBSD)
Patch from Jasper Lievisse Adriaanse
2008-03-06 Tor Lillqvist <tml@novell.com>
* gfileinfo.h: Correct milliseconds to microseconds in the doc
......
......@@ -997,7 +997,11 @@ g_local_file_query_filesystem_info (GFile *file,
#endif
}
#ifdef USE_STATFS
#if defined(HAVE_STRUCT_STATFS_FS_TYPENAME)
fstype = g_strdup(statfs_buffer.f_fstypename);
#else
fstype = get_fs_type (statfs_buffer.f_type);
#endif
if (fstype &&
g_file_attribute_matcher_matches (attribute_matcher,
G_FILE_ATTRIBUTE_FILESYSTEM_TYPE))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment