diff options
| author | Meco Man <[email protected]> | 2023-12-30 21:52:52 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-01-02 21:25:26 +0800 |
| commit | 6cc63626d7f29534b5264c3fa1a4d04e8547eb37 (patch) | |
| tree | 3d5dcb4337cd396de83b8b4131d1252d081e4fe1 /components/libc/compilers/newlib | |
| parent | 92bd28f22bcdc2e0a72803cf65afe9bb2a387ad6 (diff) | |
fix some -Wmissing-prototypes warnings
Diffstat (limited to 'components/libc/compilers/newlib')
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index ece5494b77..b311d7c712 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -23,6 +23,7 @@ #ifdef RT_USING_POSIX_STDIO #include <posix/stdio.h> #endif /* RT_USING_POSIX_STDIO */ +#include <posix/stdlib.h> #ifdef RT_USING_MODULE #include <dlmodule.h> #endif /* RT_USING_MODULE */ @@ -326,7 +327,6 @@ _ssize_t _write_r(struct _reent *ptr, int fd, const void *buf, size_t nbytes) /* for exit() and abort() */ __attribute__ ((noreturn)) void _exit (int status) { - extern void __rt_libc_exit(int status); __rt_libc_exit(status); while(1); } |
