From 7437486b3613a6bdf7f73334a4c4ceaf4539d8f8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 14 Mar 2008 09:19:09 +0000 Subject: [PATCH] Use right define name for f_fstypename member check 2008-03-14 Alexander Larsson * glocalfile.c: (g_local_file_query_filesystem_info): Use right define name for f_fstypename member check 2008-03-14 Alexander Larsson * configure.in: Add required includes for f_fstypename member check. svn path=/trunk/; revision=6703 --- ChangeLog | 5 +++++ configure.in | 7 ++++++- gio/ChangeLog | 6 ++++++ gio/glocalfile.c | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71d4ecef7..76d5a6985 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-14 Alexander Larsson + + * configure.in: + Add required includes for f_fstypename member check. + 2008-03-14 Alexander Larsson * configure.in: diff --git a/configure.in b/configure.in index 2d6815c8f..77a01adaf 100644 --- a/configure.in +++ b/configure.in @@ -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 #include #include -#include ]) +#ifdef HAVE_PARAM_H +#include +#endif +#ifdef HAVE_MOUNT_H +#include +#endif]) # Checks for libcharset jm_LANGINFO_CODESET diff --git a/gio/ChangeLog b/gio/ChangeLog index 8b890eaa9..492290754 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,9 @@ +2008-03-14 Alexander Larsson + + * glocalfile.c: + (g_local_file_query_filesystem_info): + Use right define name for f_fstypename member check + 2008-03-14 Alexander Larsson * Makefile.am: diff --git a/gio/glocalfile.c b/gio/glocalfile.c index 6f9221c34..03e866994 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -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); -- 2.34.1