aboutsummaryrefslogtreecommitdiffstats
path: root/games-util/wbfs_file/files
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-06 22:49:55 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-03-06 23:08:37 +0100
commitd30069f48c7ec183ebc60077bdf4fcf887dab0ac (patch)
tree1b6e9a0459aa18d430d191a63cd54a03ec822e05 /games-util/wbfs_file/files
parent32dc809a73102a10e336dc70dfc60dd44d18c323 (diff)
downloadoverlay-d30069f48c7ec183ebc60077bdf4fcf887dab0ac.tar.gz
overlay-d30069f48c7ec183ebc60077bdf4fcf887dab0ac.tar.xz
overlay-d30069f48c7ec183ebc60077bdf4fcf887dab0ac.zip
games-util/wbfs_file: added fix for 64bit
Diffstat (limited to '')
-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