Added xf86-input-vmmouse-12.5.1 template.
[pkgfs.git] / templates / glib-fix-statfs-netbsd.diff
blob4297a0c6aacd1a037c3708f85c131407f79f9ab2
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
4 +++ gio/gunixmounts.c
5 @@ -563,7 +563,11 @@ get_mtab_monitor_file (void)
6 static GList *
7 _g_get_unix_mounts (void)
9 +#ifdef __NetBSD__
10 + struct statvfs *mntent = NULL;
11 +#else
12 struct statfs *mntent = NULL;
13 +#endif
14 int num_mounts, i;
15 GUnixMountEntry *mount_entry;
16 GList *return_list;
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");
23 +#else
24 mount_entry->filesystem_type = g_strdup (mntent[i].f_fstypename);
25 +#endif
26 +#if defined(__NetBSD__)
27 + if (mntent[i].f_flag & MNT_RDONLY)
28 +#elif defined(__digital__)
29 + if (mntent[i].f_flags & M_RDONLY)
30 +#else
31 if (mntent[i].f_flags & MNT_RDONLY)
32 +#endif
33 mount_entry->is_read_only = TRUE;
35 mount_entry->is_system_internal =