pkgsrc/sysutils/gnome-vfs/patches/patch-am
2007-09-19 22:22:33 +00:00

28 lines
995 B
Text

$NetBSD: patch-am,v 1.3 2007/09/19 22:22:39 wiz Exp $
--- libgnomevfs/gnome-vfs-unix-mounts.c.orig Fri Dec 10 13:33:53 2004
+++ libgnomevfs/gnome-vfs-unix-mounts.c Fri May 6 18:32:49 2005
@@ -475,7 +475,11 @@
gboolean
_gnome_vfs_get_current_unix_mounts (GList **return_list)
{
+#if defined(HAVE_STATVFS) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ struct statvfs *mntent = NULL;
+#else
struct statfs *mntent = NULL;
+#endif
int num_mounts, i;
GnomeVFSUnixMount *mount_entry;
@@ -492,7 +496,11 @@
mount_entry->mount_path = g_strdup (mntent[i].f_mntonname);
mount_entry->device_path = g_strdup (mntent[i].f_mntfromname);
mount_entry->filesystem_type = g_strdup (mntent[i].f_fstypename);
+#if defined(HAVE_STATVFS) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ if (mntent[i].f_flag & MNT_RDONLY) {
+#else
if (mntent[i].f_flags & MNT_RDONLY) {
+#endif
mount_entry->is_read_only = TRUE;
}