aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-02-23 15:32:56 -0800
committerJeff Sharkey <jsharkey@android.com>2015-02-23 15:32:56 -0800
commit05760b7f1daa1e6e1ce5a6cdfb55f6b75015a4c8 (patch)
tree0fdc4626c82ca445056f69c274649f2100f977c8
parent873988ad03aba810fd5abbb3810720d7a6eb5c51 (diff)
downloadgptfdisk-05760b7f1daa1e6e1ce5a6cdfb55f6b75015a4c8.tar.gz
Use off64_t for large devices on 32-bit kernels.
Change-Id: Ie921a4fc9be4467c760dc13b8d1ed7edfc2ba8b0
-rw-r--r--diskio-unix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc
index 388a04d..4444ded 100644
--- a/diskio-unix.cc
+++ b/diskio-unix.cc
@@ -271,7 +271,7 @@ int DiskIO::DiskSync(void) {
// Note that seeking beyond the end of the file is NOT detected as a failure!
int DiskIO::Seek(uint64_t sector) {
int retval = 1;
- off_t seekTo, sought;
+ off64_t seekTo, sought;
// If disk isn't open, try to open it....
if (!isOpen) {