summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c')
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
new file mode 100644
index 000000000..a168c6acd
--- /dev/null
+++ b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-utils.c
@@ -0,0 +1,30 @@
+--- libgnomevfs/gnome-vfs-utils.c.orig Fri Apr 16 06:43:05 2004
++++ libgnomevfs/gnome-vfs-utils.c Mon Apr 19 15:41:47 2004
+@@ -797,7 +797,9 @@
+
+ #if HAVE_STATVFS
+ statfs_result = statvfs (unescaped_path, &statfs_buffer);
++#define statfs_bsize f_frsize
+ #else
++#define statfs_bsize f_bsize
+ #if STATFS_ARGS == 2
+ statfs_result = statfs (unescaped_path, &statfs_buffer);
+ #elif STATFS_ARGS == 4
+@@ -838,7 +840,7 @@
+ }
+ #endif
+
+- block_size = statfs_buffer.f_bsize;
++ block_size = statfs_buffer.statfs_bsize;
+ free_blocks = statfs_buffer.f_bavail;
+
+ *size = block_size * free_blocks;
+@@ -866,7 +868,7 @@
+ paths = g_strsplit (gnome_var, ":", 0);
+
+ for (temp_paths = paths; *temp_paths != NULL; temp_paths++) {
+- full_filename = g_strconcat (*temp_paths, "/share/pixmaps/", relative_filename, NULL);
++ full_filename = g_strconcat (*temp_paths, "/share/gnome/pixmaps/", relative_filename, NULL);
+ if (g_file_test (full_filename, G_FILE_TEST_EXISTS)) {
+ g_strfreev (paths);
+ return full_filename;