From: John Hodge Date: Thu, 19 Sep 2013 04:01:56 +0000 (+0800) Subject: Usermode/ld-acess - Fixed ld-acess failing to compile due to assert() X-Git-Tag: rel0.15~202 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=12ae31ebf4c6e129ab2e5b8e8dfa190265166446;p=tpg%2Facess2.git Usermode/ld-acess - Fixed ld-acess failing to compile due to assert() --- diff --git a/Usermode/Libraries/ld-acess.so_src/common.h b/Usermode/Libraries/ld-acess.so_src/common.h index 125d1e52..ac07f9c7 100644 --- a/Usermode/Libraries/ld-acess.so_src/common.h +++ b/Usermode/Libraries/ld-acess.so_src/common.h @@ -11,6 +11,7 @@ #include #include #include +#include typedef uintptr_t Uint; typedef uint8_t Uint8; diff --git a/Usermode/Libraries/ld-acess.so_src/main.c b/Usermode/Libraries/ld-acess.so_src/main.c index e379a70a..40c603ee 100644 --- a/Usermode/Libraries/ld-acess.so_src/main.c +++ b/Usermode/Libraries/ld-acess.so_src/main.c @@ -97,6 +97,11 @@ int CallUser(void *entry, void *sp) for(;;); } +void exit(int val) +{ + _exit(val); +} + void abort(void) { _exit(-4);