From 40813616ed0f587647d197c2cbd8b2f9daf00d29 Mon Sep 17 00:00:00 2001 From: xinxin shu Date: Tue, 5 Aug 2014 05:14:19 +0800 Subject: [PATCH] fix compile error on 32-bits Signed-off-by: xinxin shu --- util/env_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3