summaryrefslogtreecommitdiff
path: root/sysutils/gnome-vfs/patches/patch-am
blob: 649edc337eb5988719f63a71b9ed7e3f5a7b9cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$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;
 		}