aboutsummaryrefslogtreecommitdiffstats
path: root/main/e2fsprogs/fix_uint64_t.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:05:54 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:24 +0000
commit4bcc6d4b25febf5771be27c1b373c30c38e80c93 (patch)
treec30cbbdf6b1e734526a7f6aa2def61048e93ee94 /main/e2fsprogs/fix_uint64_t.patch
parent392988ed3d9401f39ab7fed37a8d76de993eda8b (diff)
downloadaports-4bcc6d4b25febf5771be27c1b373c30c38e80c93.tar.bz2
aports-4bcc6d4b25febf5771be27c1b373c30c38e80c93.tar.xz
main/e2fsprogs: use standard types
fixes musl build, patch from sabotage.
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 0000000000..8433e11ab0
--- /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