diff -urN arc-gui-clients-0.2.2-Source.orig/cmake/Modules/CheckFileOffsetBits.c arc-gui-clients-0.2.2-Source/cmake/Modules/CheckFileOffsetBits.c
--- arc-gui-clients-0.2.2-Source.orig/cmake/Modules/CheckFileOffsetBits.c	1970-01-01 01:00:00.000000000 +0100
+++ arc-gui-clients-0.2.2-Source/cmake/Modules/CheckFileOffsetBits.c	2010-05-21 03:07:32.000000000 +0200
@@ -0,0 +1,14 @@
+#include <sys/types.h>
+
+#define KB ((off_t)1024)
+#define MB ((off_t)1024 * KB)
+#define GB ((off_t)1024 * MB)
+#define TB ((off_t)1024 * GB)
+int t2[(((64 * GB -1) % 671088649) == 268434537)
+       && (((TB - (64 * GB -1) + 255) % 1792151290) == 305159546)? 1: -1];
+
+int main()
+{
+  ;
+  return 0;
+}
diff -urN arc-gui-clients-0.2.2-Source.orig/cmake/Modules/CheckFileOffsetBits.cmake arc-gui-clients-0.2.2-Source/cmake/Modules/CheckFileOffsetBits.cmake
--- arc-gui-clients-0.2.2-Source.orig/cmake/Modules/CheckFileOffsetBits.cmake	1970-01-01 01:00:00.000000000 +0100
+++ arc-gui-clients-0.2.2-Source/cmake/Modules/CheckFileOffsetBits.cmake	2010-05-21 03:07:32.000000000 +0200
@@ -0,0 +1,44 @@
+# - Check if _FILE_OFFSET_BITS macro needed for large files
+# CHECK_FILE_OFFSET_BITS ()
+#
+# The following variables may be set before calling this macro to
+# modify the way the check is run:
+#
+#  CMAKE_REQUIRED_FLAGS = string of compile command line flags
+#  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
+#  CMAKE_REQUIRED_INCLUDES = list of include directories
+# Copyright (c) 2009, Michihiro NAKAJIMA
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+#INCLUDE(CheckCXXSourceCompiles)
+
+GET_FILENAME_COMPONENT(_selfdir_CheckFileOffsetBits
+	 "${CMAKE_CURRENT_LIST_FILE}" PATH)
+
+MACRO (CHECK_FILE_OFFSET_BITS)
+  IF(NOT DEFINED _FILE_OFFSET_BITS)
+    MESSAGE(STATUS "Cheking _FILE_OFFSET_BITS for large files")
+    TRY_COMPILE(__WITHOUT_FILE_OFFSET_BITS_64
+      ${CMAKE_CURRENT_BINARY_DIR}
+      ${_selfdir_CheckFileOffsetBits}/CheckFileOffsetBits.c
+      COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS})
+    IF(NOT __WITHOUT_FILE_OFFSET_BITS_64)
+      TRY_COMPILE(__WITH_FILE_OFFSET_BITS_64
+        ${CMAKE_CURRENT_BINARY_DIR}
+        ${_selfdir_CheckFileOffsetBits}/CheckFileOffsetBits.c
+        COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_FILE_OFFSET_BITS=64)
+    ENDIF(NOT __WITHOUT_FILE_OFFSET_BITS_64)
+
+    IF(NOT __WITHOUT_FILE_OFFSET_BITS_64 AND __WITH_FILE_OFFSET_BITS_64)
+      SET(_FILE_OFFSET_BITS 64 CACHE INTERNAL "_FILE_OFFSET_BITS macro needed for large files")
+      MESSAGE(STATUS "Cheking _FILE_OFFSET_BITS for large files - needed")
+    ELSE(NOT __WITHOUT_FILE_OFFSET_BITS_64 AND __WITH_FILE_OFFSET_BITS_64)
+      SET(_FILE_OFFSET_BITS "" CACHE INTERNAL "_FILE_OFFSET_BITS macro needed for large files")
+      MESSAGE(STATUS "Cheking _FILE_OFFSET_BITS for large files - not needed")
+    ENDIF(NOT __WITHOUT_FILE_OFFSET_BITS_64 AND __WITH_FILE_OFFSET_BITS_64)
+  ENDIF(NOT DEFINED _FILE_OFFSET_BITS)
+
+ENDMACRO (CHECK_FILE_OFFSET_BITS)
+
diff -urN arc-gui-clients-0.2.2-Source.orig/CMakeLists.txt arc-gui-clients-0.2.2-Source/CMakeLists.txt
--- arc-gui-clients-0.2.2-Source.orig/CMakeLists.txt	2012-06-14 11:22:55.000000000 +0200
+++ arc-gui-clients-0.2.2-Source/CMakeLists.txt	2012-06-27 09:52:41.475565004 +0200
@@ -45,3 +45,9 @@
         ./bin/
 )
 include(CPack)
+
+include(CheckFileOffsetBits)
+CHECK_FILE_OFFSET_BITS()
+IF(__WITH_FILE_OFFSET_BITS_64)
+ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
+ENDIF(__WITH_FILE_OFFSET_BITS_64)
