diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-13 18:21:36 +0100 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2020-03-13 13:51:20 -0500 |
commit | b37a3388cca2df92c204ab8693b09966dca2dad4 (patch) | |
tree | 1e97de99a714f15e13e158d2c15fdcc0eb35c1b6 | |
parent | 071b8e0cbd4be33449c12bb0d58f514ed8ef893c (diff) | |
download | newlib-b37a3388cca2df92c204ab8693b09966dca2dad4.zip newlib-b37a3388cca2df92c204ab8693b09966dca2dad4.tar.gz newlib-b37a3388cca2df92c204ab8693b09966dca2dad4.tar.bz2 |
RTEMS: Include missing header and fix stub
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index 28db713..6b8b5f9 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -13,6 +13,7 @@ #include <sys/lock.h> #include <sys/stat.h> #include <sys/uio.h> +#include <assert.h> #include <reent.h> #include <signal.h> #include <stdlib.h> @@ -194,7 +195,7 @@ RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; }) RTEMS_STUB(void, _free_r(struct _reent *r, void *p), { }) /* stubs for functions required by libc/stdlib */ -RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { }) +RTEMS_STUB(void, __assert_func(const char *file, int line, const char *func, const char *failedexpr), { }) #if defined(__arm__) RTEMS_STUB(void, __aeabi_read_tp(void), { }) |