Use right define name for f_fstypename member check

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

        * glocalfile.c:
        (g_local_file_query_filesystem_info):
	Use right define name for f_fstypename member check

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

        * configure.in:
	Add required includes for f_fstypename member check.
	

svn path=/trunk/; revision=6703
This commit is contained in:
Alexander Larsson 2008-03-14 09:19:09 +00:00 committed by Alexander Larsson
parent 7dc75d707c
commit 7437486b36
4 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-03-14 Alexander Larsson <alexl@redhat.com>
* configure.in:
Add required includes for f_fstypename member check.
2008-03-14 Alexander Larsson <alexl@redhat.com>
* configure.in:

View File

@ -842,7 +842,12 @@ AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename], [#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/mount.h>])
#ifdef HAVE_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_MOUNT_H
#include <sys/mount.h>
#endif])
# Checks for libcharset
jm_LANGINFO_CODESET

View File

@ -1,3 +1,9 @@
2008-03-14 Alexander Larsson <alexl@redhat.com>
* glocalfile.c:
(g_local_file_query_filesystem_info):
Use right define name for f_fstypename member check
2008-03-14 Alexander Larsson <alexl@redhat.com>
* Makefile.am:

View File

@ -1001,7 +1001,7 @@ g_local_file_query_filesystem_info (GFile *file,
#endif
}
#ifdef USE_STATFS
#if defined(HAVE_STRUCT_STATFS_FS_TYPENAME)
#if defined(HAVE_STRUCT_STATFS_F_FSTYPENAME)
fstype = g_strdup(statfs_buffer.f_fstypename);
#else
fstype = get_fs_type (statfs_buffer.f_type);