LCGDM-825: Enforcing compilation with 64 bits definitions.
authorAlejandro Álvarez Ayllón <alejandro.alvarez.ayllon@cern.ch>
Thu, 15 Nov 2012 16:22:30 +0000 (16:22 +0000)
committerAlejandro Álvarez Ayllón <alejandro.alvarez.ayllon@cern.ch>
Thu, 15 Nov 2012 16:22:30 +0000 (16:22 +0000)
git-svn-id: https://svn.cern.ch/reps/lcgdm/dmlite-plugins-vfs/trunk@7791 4525493e-7705-40b1-a816-d608a930855b

CMakeLists.txt
src/VfsIO.cpp

index b2c07ba..8af6ad6 100644 (file)
@@ -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)
index b14945a..4648a17 100644 (file)
@@ -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_;
 }