From 06421c5aa41069d4ff8538fdc44e23db53e2551d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20=C3=81lvarez=20Ayll=C3=B3n?= Date: Thu, 15 Nov 2012 16:22:30 +0000 Subject: [PATCH] LCGDM-825: Enforcing compilation with 64 bits definitions. git-svn-id: https://svn.cern.ch/reps/lcgdm/dmlite-plugins-vfs/trunk@7791 4525493e-7705-40b1-a816-d608a930855b --- CMakeLists.txt | 2 +- src/VfsIO.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2c07ba..8af6ad6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ find_package (DMLite REQUIRED) include_directories (${Boost_INCLUDE_DIR} ${DMLITE_INCLUDE_DIR}) # Definitions -add_definitions (-D_REENTRANT) +add_definitions (-D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) # Subdirectories add_subdirectory (src) diff --git a/src/VfsIO.cpp b/src/VfsIO.cpp index b14945a..4648a17 100644 --- a/src/VfsIO.cpp +++ b/src/VfsIO.cpp @@ -143,7 +143,7 @@ void VfsIOHandler::seek(off_t offset, Whence whence) throw (DmException) -long VfsIOHandler::tell(void) throw (DmException) +off_t VfsIOHandler::tell(void) throw (DmException) { return pos_; } -- 1.8.2.3