Merge branch 'statvfs-type' into 'main'

glocalfile: Support statvfs.f_type

See merge request GNOME/glib!3893
This commit is contained in:
Michael Catanzaro 2024-02-07 14:24:52 +00:00
commit b7ef29560d
2 changed files with 3 additions and 0 deletions

View File

@ -1089,6 +1089,8 @@ g_local_file_query_filesystem_info (GFile *file,
fstype = statfs_buffer.f_fstypename;
#elif defined(HAVE_STRUCT_STATVFS_F_BASETYPE)
fstype = statfs_buffer.f_basetype;
#elif defined(HAVE_STRUCT_STATVFS_F_TYPE)
fstype = get_fs_type (statfs_buffer.f_type);
#else
fstype = NULL;
#endif

View File

@ -507,6 +507,7 @@ struct_members = [
#include <dirent.h>''' ],
[ 'statvfs', 'f_basetype', '#include <sys/statvfs.h>' ],
[ 'statvfs', 'f_fstypename', '#include <sys/statvfs.h>' ],
[ 'statvfs', 'f_type', '#include <sys/statvfs.h>' ],
[ 'tm', 'tm_gmtoff', '#include <time.h>' ],
[ 'tm', '__tm_gmtoff', '#include <time.h>' ],
]