aboutsummaryrefslogtreecommitdiffstats
path: root/games-util/wbfs_file/files
diff options
context:
space:
mode:
Diffstat (limited to 'games-util/wbfs_file/files')
-rw-r--r--games-util/wbfs_file/files/64bit_fix.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/games-util/wbfs_file/files/64bit_fix.patch b/games-util/wbfs_file/files/64bit_fix.patch
new file mode 100644
index 0000000..97d6db2
--- /dev/null
+++ b/games-util/wbfs_file/files/64bit_fix.patch
@@ -0,0 +1,38 @@
+diff -r -u source/libwbfs/rijndael.c wbfs_file_2.9/source/libwbfs/rijndael.c
+--- source/libwbfs/rijndael.c 2009-03-26 18:37:14.000000000 +0100
++++ source/libwbfs/rijndael.c 2012-03-06 22:44:07.000000000 +0100
+@@ -11,10 +11,11 @@
+
+ #include <stdio.h>
+ #include <string.h>
++#include <stdint.h>
+
+ #define u8 unsigned char /* 8 bits */
+-#define u32 unsigned long /* 32 bits */
+-#define u64 unsigned long long
++#define u32 uint32_t /* 32 bits */
++#define u64 uint64_t
+
+ /* rotates x one bit to the left */
+
+diff -r -u source/tools.h wbfs_file_2.9_64bit//source/tools.h
+--- source/tools.h 2009-03-18 17:17:38.000000000 +0100
++++ source/tools.h 2012-03-06 22:43:26.000000000 +0100
+@@ -5,11 +5,13 @@
+ #ifndef _TOOLS_H
+ #define _TOOLS_H
+
++#include <stdint.h>
++
+ // basic data types
+ typedef unsigned char u8;
+-typedef unsigned short u16;
+-typedef unsigned int u32;
+-typedef unsigned long long u64;
++typedef uint16_t u16;
++typedef uint32_t u32;
++typedef uint64_t u64;
+
+ u16 be16(const u8 *p);
+ u32 be32(const u8 *p);
+Only in wbfs_file_2.9_64bit//source: wbfs_file