From d3f63f03adb664ae076253852015feca8e1f689b Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 2 Jul 2014 11:40:16 +0200 Subject: [PATCH] Fix 32-bit errors Summary: https://www.facebook.com/groups/rocksdb.dev/permalink/590438347721350/ Test Plan: compiles Reviewers: sdong, ljin, yhchiang Reviewed By: yhchiang Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D19197 --- 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 267958606..3bfeb0ea0 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 {