1 $NetBSD: patch-ba,v 1.3 2008/09/06 11:07:20 obache Exp $
3 --- gio/gunixmounts.c.orig 2008-09-02 15:09:19.000000000 +0000
5 @@ -563,7 +563,11 @@ get_mtab_monitor_file (void)
7 _g_get_unix_mounts (void)
10 + struct statvfs *mntent = NULL;
12 struct statfs *mntent = NULL;
15 GUnixMountEntry *mount_entry;
17 @@ -580,8 +584,18 @@ _g_get_unix_mounts (void)
19 mount_entry->mount_path = g_strdup (mntent[i].f_mntonname);
20 mount_entry->device_path = g_strdup (mntent[i].f_mntfromname);
21 +#if defined(__digital__)
22 + mount_entry->filesystem_type = g_strdup ("unknown");
24 mount_entry->filesystem_type = g_strdup (mntent[i].f_fstypename);
26 +#if defined(__NetBSD__)
27 + if (mntent[i].f_flag & MNT_RDONLY)
28 +#elif defined(__digital__)
29 + if (mntent[i].f_flags & M_RDONLY)
31 if (mntent[i].f_flags & MNT_RDONLY)
33 mount_entry->is_read_only = TRUE;
35 mount_entry->is_system_internal =