From: xinxin shu Date: Mon, 4 Aug 2014 21:14:19 +0000 (+0800) Subject: fix compile error on 32-bits X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4%2Fhead;p=rocksdb.git fix compile error on 32-bits Signed-off-by: xinxin shu --- diff --git a/util/env_posix.cc b/util/env_posix.cc index 5cbd5bd0..63b9fc26 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -821,7 +821,7 @@ class PosixWritableFile : public WritableFile { } } - virtual Status RangeSync(off64_t offset, off64_t nbytes) { + virtual Status RangeSync(off_t offset, off_t nbytes) { if (sync_file_range(fd_, offset, nbytes, SYNC_FILE_RANGE_WRITE) == 0) { return Status::OK(); } else {