summaryrefslogtreecommitdiffstats
path: root/main/e2fsprogs/fix_uint64_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/e2fsprogs/fix_uint64_t.patch')
-rw-r--r--main/e2fsprogs/fix_uint64_t.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/e2fsprogs/fix_uint64_t.patch b/main/e2fsprogs/fix_uint64_t.patch
new file mode 100644
index 000000000..8433e11ab
--- /dev/null
+++ b/main/e2fsprogs/fix_uint64_t.patch
@@ -0,0 +1,16 @@
+--- e2fsprogs-1.42.8.orig/lib/ext2fs/unix_io.c
++++ e2fsprogs-1.42.8/lib/ext2fs/unix_io.c
+@@ -931,10 +931,10 @@
+
+ if (channel->flags & CHANNEL_FLAGS_BLOCK_DEVICE) {
+ #ifdef BLKDISCARD
+- __uint64_t range[2];
++ uint64_t range[2];
+
+- range[0] = (__uint64_t)(block) * channel->block_size;
+- range[1] = (__uint64_t)(count) * channel->block_size;
++ range[0] = (uint64_t)(block) * channel->block_size;
++ range[1] = (uint64_t)(count) * channel->block_size;
+
+ ret = ioctl(data->dev, BLKDISCARD, &range);
+ #else