diff options
author | wiz <wiz> | 2011-09-29 22:04:31 +0000 |
---|---|---|
committer | wiz <wiz> | 2011-09-29 22:04:31 +0000 |
commit | 263a279332460f009daa3a5ea80768433ee7d8cb (patch) | |
tree | d9fd3b9360840e17131af8b838706a14cb41c98f /sysutils/gvfs/patches | |
parent | 37b527a6754980a7d9507b07333394bb4ccd43d5 (diff) | |
download | pkgsrc-263a279332460f009daa3a5ea80768433ee7d8cb.tar.gz |
Fix build on -current with fuse option turned on (default off).
From B.ICT A.P. deBROUWER Jr. in PR 45401.
Diffstat (limited to 'sysutils/gvfs/patches')
-rw-r--r-- | sysutils/gvfs/patches/patch-ac | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sysutils/gvfs/patches/patch-ac b/sysutils/gvfs/patches/patch-ac index a626b713c7a..a009e5b033c 100644 --- a/sysutils/gvfs/patches/patch-ac +++ b/sysutils/gvfs/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.2 2009/05/26 19:21:45 wiz Exp $ +$NetBSD: patch-ac,v 1.3 2011/09/29 22:04:32 wiz Exp $ http://bugzilla.gnome.org/show_bug.cgi?id=583927 ---- client/gvfsfusedaemon.c.orig 2008-10-20 05:02:26.000000000 -0400 +--- client/gvfsfusedaemon.c.orig 2010-11-12 15:42:49.000000000 +0000 +++ client/gvfsfusedaemon.c @@ -26,7 +26,9 @@ #include <sys/types.h> @@ -14,3 +14,13 @@ http://bugzilla.gnome.org/show_bug.cgi?id=583927 #include <sys/time.h> #include <unistd.h> #include <stdlib.h> +@@ -2340,7 +2342,9 @@ vfs_init (struct fuse_conn_info *conn) + subthread = g_thread_create ((GThreadFunc) subthread_main, NULL, FALSE, NULL); + + /* Indicate O_TRUNC support for open() */ ++#ifdef FUSE_CAP_ATOMIC_O_TRUNC + conn->want |= FUSE_CAP_ATOMIC_O_TRUNC; ++#endif + + return NULL; + } |