Move _exit function up, so gcc doesn't complain

This commit is contained in:
Michal Sieron 2021-08-11 18:06:18 +02:00
parent 9f169d5520
commit 1a1a81bfa0
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}