1 $NetBSD: patch-am,v 1.12 2005/08/25 16:23:42 reed Exp $
3 --- libgnomevfs/gnome-vfs-unix-mounts.c.orig Fri Dec 10 13:33:53 2004
4 +++ libgnomevfs/gnome-vfs-unix-mounts.c Fri May 6 18:32:49 2005
7 _gnome_vfs_get_current_unix_mounts (GList **return_list)
9 +#if defined(HAVE_STATVFS) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
10 + struct statvfs *mntent = NULL;
12 struct statfs *mntent = NULL;
15 GnomeVFSUnixMount *mount_entry;
18 mount_entry->mount_path = g_strdup (mntent[i].f_mntonname);
19 mount_entry->device_path = g_strdup (mntent[i].f_mntfromname);
20 mount_entry->filesystem_type = g_strdup (mntent[i].f_fstypename);
21 +#if defined(HAVE_STATVFS) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
22 + if (mntent[i].f_flag & MNT_RDONLY) {
24 if (mntent[i].f_flags & MNT_RDONLY) {
26 mount_entry->is_read_only = TRUE;