summarylogtreecommitdiffstats
path: root/libext2fs-wii-fix_crc32_int_type.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libext2fs-wii-fix_crc32_int_type.patch')
-rw-r--r--libext2fs-wii-fix_crc32_int_type.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libext2fs-wii-fix_crc32_int_type.patch b/libext2fs-wii-fix_crc32_int_type.patch
new file mode 100644
index 000000000000..a24c00640cec
--- /dev/null
+++ b/libext2fs-wii-fix_crc32_int_type.patch
@@ -0,0 +1,22 @@
+diff -Naur libext2fs-wii-1.0.5.old/source/ext2fs.h libext2fs-wii-1.0.5/source/ext2fs.h
+--- libext2fs-wii-1.0.5.old/source/ext2fs.h 2016-11-20 19:28:25.332242000 +0100
++++ libext2fs-wii-1.0.5/source/ext2fs.h 2016-11-20 19:31:31.931650727 +0100
+@@ -48,6 +48,7 @@
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
++#include <stdint.h>
+
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -918,8 +919,8 @@
+ extern void ext2fs_update_dynamic_rev(ext2_filsys fs);
+
+ /* crc32c.c */
+-extern __u32 ext2fs_crc32c_be(__u32 crc, unsigned char const *p, size_t len);
+-extern __u32 ext2fs_crc32c_le(__u32 crc, unsigned char const *p, size_t len);
++extern uint32_t ext2fs_crc32c_be(uint32_t crc, unsigned char const *p, size_t len);
++extern uint32_t ext2fs_crc32c_le(uint32_t crc, unsigned char const *p, size_t len);
+
+ /* csum.c */
+ extern void ext2fs_group_desc_csum_set(ext2_filsys fs, dgrp_t group);