From 1a1a81bfa07d17e364db5cb35263ed1e5bbbb52d Mon Sep 17 00:00:00 2001 From: Michal Sieron Date: Wed, 11 Aug 2021 18:06:18 +0200 Subject: [PATCH] Move _exit function up, so gcc doesn't complain --- litex/soc/software/libc/missing.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/litex/soc/software/libc/missing.c b/litex/soc/software/libc/missing.c index 6eb74691b..3125b37b2 100644 --- a/litex/soc/software/libc/missing.c +++ b/litex/soc/software/libc/missing.c @@ -4,15 +4,16 @@ int getentropy(void *v, size_t s) { return -1; } -int getpid() { +int getpid(void) { return 1; } -int kill(int pid, int name) { - _exit(0); -} - void _exit(int code) { while (1); } +int kill(int pid, int name) { + _exit(0); + return 0; +} +