diff options
Diffstat (limited to 'fs_mgr/liblp/utility.cpp')
-rw-r--r-- | fs_mgr/liblp/utility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs_mgr/liblp/utility.cpp b/fs_mgr/liblp/utility.cpp index 4f20b6bf8..f0a381279 100644 --- a/fs_mgr/liblp/utility.cpp +++ b/fs_mgr/liblp/utility.cpp @@ -29,6 +29,7 @@ namespace android { namespace fs_mgr { bool GetDescriptorSize(int fd, uint64_t* size) { +#if !defined(_WIN32) struct stat s; if (fstat(fd, &s) < 0) { PERROR << __PRETTY_FUNCTION__ << "fstat failed"; @@ -39,6 +40,7 @@ bool GetDescriptorSize(int fd, uint64_t* size) { *size = get_block_device_size(fd); return *size != 0; } +#endif int64_t result = SeekFile64(fd, 0, SEEK_END); if (result == -1) { |