fix a 64bit issue

This commit is contained in:
Matthias Clasen 2008-04-12 03:05:55 +00:00
parent 1e8ee92c0c
commit 7dfa54fce4
2 changed files with 20 additions and 1 deletions

14
gvfs-64clean.patch Normal file
View File

@ -0,0 +1,14 @@
diff -up gvfs-0.2.3/client/gvfsfusedaemon.c.64clean gvfs-0.2.3/client/gvfsfusedaemon.c
--- gvfs-0.2.3/client/gvfsfusedaemon.c.64clean 2008-04-11 23:00:42.000000000 -0400
+++ gvfs-0.2.3/client/gvfsfusedaemon.c 2008-04-11 23:01:17.000000000 -0400
@@ -55,8 +55,8 @@
#define DEBUG_ENABLED 0
-#define GET_FILE_HANDLE(fi) (GUINT_TO_POINTER ((guint) (fi)->fh))
-#define SET_FILE_HANDLE(fi, fh) ((fi)->fh = (guint64) GPOINTER_TO_UINT (fh))
+#define GET_FILE_HANDLE(fi) ((gpointer) (fi)->fh))
+#define SET_FILE_HANDLE(fi, fh) ((fi)->fh = (guint64) (fh))
typedef struct {
time_t creation_time;

View File

@ -1,7 +1,7 @@
Summary: Backends for the gio framework in GLib
Name: gvfs
Version: 0.2.3
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@ -34,6 +34,7 @@ Requires(postun): desktop-file-utils
BuildRequires: automake autoconf
BuildRequires: libtool
Patch1: gvfs-0.2.2-archive-integration.patch
Patch2: gvfs-64clean.patch
%description
The gvfs package provides backend implementations for the gio
@ -63,6 +64,7 @@ to access the gvfs filesystems.
%prep
%setup -q
%patch1 -p0 -b .archive-integration
%patch2 -p1 -b .64clean
%build
@ -176,6 +178,9 @@ update-desktop-database &> /dev/null ||:
%changelog
* Fri Apr 11 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.3-2
- Fix a crash of the fuse daemon on 64bit
* Mon Apr 7 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.3-1
- Update to 0.2.3