diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-20 10:10:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-20 10:12:18 +0100 |
commit | 6480987f3a845881789499e13bf52aadc0b241e1 (patch) | |
tree | 40da212978459aa39850ba82b149d0e60714aed7 /newlib | |
parent | 0e3e3753776d715a6032440e428052f036a29fac (diff) | |
download | newlib-6480987f3a845881789499e13bf52aadc0b241e1.zip newlib-6480987f3a845881789499e13bf52aadc0b241e1.tar.gz newlib-6480987f3a845881789499e13bf52aadc0b241e1.tar.bz2 |
RTEMS: Add missing __getreent() to crt0
Default implementation was removed for RTEMS by
b1a388799dc98e6d1451fb73aa71097cbf9f37d9.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index a565274..9778b98 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -146,6 +146,7 @@ RTEMS_STUB(int, _fstat_r (struct _reent *r, int fd, struct stat *buf), { return RTEMS_STUB(uid_t, geteuid (), { return -1; }) RTEMS_STUB(gid_t, getgid (), { return -1; }) RTEMS_STUB(gid_t, _getgid_r (struct _reent *r), { return -1; }) +RTEMS_STUB(struct _reent *, __getreent (void), { return 0; }) RTEMS_STUB(pid_t, getpid (), { return -1; }) RTEMS_STUB(pid_t, getppid (), { return -1; }) RTEMS_STUB(pid_t, _getpid_r (struct _reent *r), { return -1; }) |