aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-gnome-vfs/files
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-12-24 11:10:48 +0800
committerahze <ahze@FreeBSD.org>2006-12-24 11:10:48 +0800
commit7a9f6a390133509e520052b4122aa364cebd4794 (patch)
tree547d241f7f89278b23ccbbdb1a91902cc709d28d /sysutils/fusefs-gnome-vfs/files
parent1123d46d7ad8344cc7358d4f353b8325a4c196ab (diff)
downloadfreebsd-ports-gnome-7a9f6a390133509e520052b4122aa364cebd4794.tar.gz
freebsd-ports-gnome-7a9f6a390133509e520052b4122aa364cebd4794.tar.zst
freebsd-ports-gnome-7a9f6a390133509e520052b4122aa364cebd4794.zip
Add fusefs-gnome-vfs
Interface between FUSE and the Gnome VFS 2.0. It allows the user to mount everything you can access via the Nautilus file manager. But of course you can use a convenient CLI instead of the Desktop. WWW: http://www.evolware.org/chri/
Diffstat (limited to 'sysutils/fusefs-gnome-vfs/files')
-rw-r--r--sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c b/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c
new file mode 100644
index 000000000000..5d69744ade7b
--- /dev/null
+++ b/sysutils/fusefs-gnome-vfs/files/patch-gnomevfs-mount.c
@@ -0,0 +1,63 @@
+--- gnomevfs-mount.c.orig Sat Dec 23 21:52:20 2006
++++ gnomevfs-mount.c Sat Dec 23 21:55:02 2006
+@@ -31,7 +31,8 @@
+ #define _GNU_SOURCE 1
+ #endif
+
+-#define FUSE_USE_VERSION 22
++
++#define FUSE_USE_VERSION 25
+
+ #include <fuse.h>
+ #include <stdio.h>
+@@ -40,7 +41,14 @@
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <errno.h>
++
++#ifdef __FreeBSD__
++#define ENODATA ENOATTR
++#define EGREGIOUS EDOOFUS
++#else
+ #include <sys/statfs.h>
++#endif
++
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+@@ -705,7 +713,7 @@
+ char *full_path;
+ GnomeVFSOpenMode flags = GNOME_VFS_OPEN_RANDOM;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+
+ full_path = g_strdup_printf("%s/%s", mount_name, path);
+
+@@ -735,7 +743,7 @@
+ {
+ int res;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ GnomeVFSFileSize nread;
+ (void) path;
+
+@@ -760,7 +768,7 @@
+ {
+ int res;
+ GnomeVFSResult result;
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ GnomeVFSFileSize nwrite;
+ (void) path;
+
+@@ -790,7 +798,7 @@
+
+ static int xmp_release(const char *path, struct fuse_file_info *fi)
+ {
+- GnomeVFSHandle *handle = (GnomeVFSHandle *) fi->fh;
++ GnomeVFSHandle *handle = (GnomeVFSHandle *) (int) fi->fh;
+ (void) path;
+
+ //g_debug("%s %s", __FUNCTION__, path);