From 51846e0df6a4eaa26db928a3722d92e351ee385a Mon Sep 17 00:00:00 2001 From: Magnus Lundin Date: Thu, 2 May 2013 11:37:32 -0400 Subject: wirish/syscalls.c: add weak exit function. For toolchains which require an exit function. Signed-off-by: Marti Bolivar --- wirish/syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wirish') diff --git a/wirish/syscalls.c b/wirish/syscalls.c index 1e62d51..a3b6d2c 100644 --- a/wirish/syscalls.c +++ b/wirish/syscalls.c @@ -168,3 +168,8 @@ __weak char *fgets(char *s, int bufsize, void *f) { cgets(s, bufsize); return s; } + +__weak void _exit(int exitcode) { + while (1) + ; +} -- cgit v1.2.3