diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-03 22:05:35 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-03 22:05:35 +0200 |
commit | f59ff0cf1b30feac7129085107cab81dbc9294c0 (patch) | |
tree | 91d728726b69c0dd7c868834706e4befd8d3dc9a /games-util/wbfs_file/files/64bit_fix.patch | |
parent | ba9625d5abf5f62308b2f679cc05ac70a9ea149a (diff) | |
parent | 5d13dbda8f7c8a41475fe3ca17f2202eb0bb9322 (diff) | |
download | overlay-f59ff0cf1b30feac7129085107cab81dbc9294c0.tar.gz overlay-f59ff0cf1b30feac7129085107cab81dbc9294c0.tar.xz overlay-f59ff0cf1b30feac7129085107cab81dbc9294c0.zip |
Merge branch 'master' of ssh://git.animux.de/overlay
Diffstat (limited to '')
-rw-r--r-- | games-util/wbfs_file/files/64bit_fix.patch | 38 |
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 |