From fe6fede9b75018166e66a9a48d35c1196e704e44 Mon Sep 17 00:00:00 2001
From: Benedikt Meurer <benny@xfce.org>
Date: Tue, 29 Nov 2005 09:33:51 +0000
Subject: [PATCH] 2005-11-29	Benedikt Meurer <benny@xfce.org>

	* configure.in.in, thunar-vfs/thunar-vfs-types.h: Add largefile support
	  for systems that don't support 64bit file offsets by default. This
	  fixes bug #1243.




(Old svn revision: 18960)
---
 ChangeLog                     | 6 ++++++
 configure.in.in               | 5 +++++
 thunar-vfs/thunar-vfs-types.h | 4 +++-
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b0d8ac95d..b70511c55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-29	Benedikt Meurer <benny@xfce.org>
+
+	* configure.in.in, thunar-vfs/thunar-vfs-types.h: Add largefile support
+	  for systems that don't support 64bit file offsets by default. This
+	  fixes bug #1243.
+
 2005-11-28	Benedikt Meurer <benny@xfce.org>
 
 	* thunar/thunar-location-buttons.c, thunar/thunar-properties-dialog.c:
diff --git a/configure.in.in b/configure.in.in
index df733dbcc..1eabaff54 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -88,6 +88,11 @@ esac
 AC_SUBST([TDB_U32_TYPE])
 AC_MSG_RESULT([$TDB_U32_TYPE])
 
+dnl ***********************************************
+dnl *** Work-around system-specific limitations ***
+dnl ***********************************************
+AC_SYS_LARGEFILE()
+
 dnl **********************************
 dnl *** Check for standard headers ***
 dnl **********************************
diff --git a/thunar-vfs/thunar-vfs-types.h b/thunar-vfs/thunar-vfs-types.h
index 643b70795..f3786da82 100644
--- a/thunar-vfs/thunar-vfs-types.h
+++ b/thunar-vfs/thunar-vfs-types.h
@@ -24,6 +24,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include <glib.h>
+
 G_BEGIN_DECLS;
 
 /**
@@ -125,7 +127,7 @@ typedef ino_t ThunarVfsFileInode;
  * ThunarVfsFileSize:
  * Datatype to represent file sizes (in bytes).
  **/
-typedef off_t ThunarVfsFileSize;
+typedef gint64 ThunarVfsFileSize;
 
 /**
  * ThunarVfsFileTime:
-- 
GitLab