Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / gnome-vfs / patches / patch-am
blob379472a7fed02d56f6cff7051f0c907bb82dba8d
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
5 @@ -475,7 +475,11 @@
6  gboolean
7  _gnome_vfs_get_current_unix_mounts (GList **return_list)
8  {
9 +#if defined(HAVE_STATVFS) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
10 +       struct statvfs *mntent = NULL;
11 +#else
12         struct statfs *mntent = NULL;
13 +#endif
14         int num_mounts, i;
15         GnomeVFSUnixMount *mount_entry;
17 @@ -492,7 +496,11 @@
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) {
23 +#else
24                 if (mntent[i].f_flags & MNT_RDONLY) {
25 +#endif
26                         mount_entry->is_read_only = TRUE;
27                 }