From: Alejandro Álvarez Ayllón Date: Thu, 15 Nov 2012 16:22:30 +0000 (+0000) Subject: LCGDM-825: Enforcing compilation with 64 bits definitions. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=06421c5aa41069d4ff8538fdc44e23db53e2551d;p=dmlite-plugins-vfs.git 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 --- 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_; }