From: Theodore Ts'o Date: Tue, 4 Jul 2017 01:28:53 +0000 (-0400) Subject: libext2fs: fix build issue for on Windows/Cygwin systems X-Git-Tag: v1.43.5~39 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e8c858047be6647ff1bdd31ead721b6fbd9d3e5b;p=tools%2Fe2fsprogs.git libext2fs: fix build issue for on Windows/Cygwin systems Provide ext2fs_get_device_size2() for Windows/Cygwin systems, so builds can succeed. Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/getsize.c b/lib/ext2fs/getsize.c index 89c33d4..f3839ba 100644 --- a/lib/ext2fs/getsize.c +++ b/lib/ext2fs/getsize.c @@ -71,8 +71,8 @@ #define HAVE_GET_FILE_SIZE_EX 1 #endif -errcode_t ext2fs_get_device_size(const char *file, int blocksize, - blk_t *retblocks) +errcode_t ext2fs_get_device_size2(const char *file, int blocksize, + blk64_t *retblocks) { HANDLE dev; PARTITION_INFORMATION pi; @@ -272,6 +272,8 @@ out: return rc; } +#endif /* WIN32 */ + errcode_t ext2fs_get_device_size(const char *file, int blocksize, blk_t *retblocks) { @@ -287,8 +289,6 @@ errcode_t ext2fs_get_device_size(const char *file, int blocksize, return 0; } -#endif /* WIN32 */ - #ifdef DEBUG int main(int argc, char **argv) {