Re: REENTRANT_SYSCALLS_PROVIDED?
Josef Wolf <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Mi, Sep 12, 2018 at 01:10:59 +0200, Josef Wolf wrote: > [ ... ] > /m/a/local/crossgcc/bin/../lib64/gcc/m68k-unknown-elf/8.2.0/../../../../m68k-unknown-elf/bin/ld: > /m/a/local/crossgcc/bin/../lib64/gcc/m68k-unknown-elf/8.2.0/../../../../m68k-unknown-elf/lib/mcpu32/libc.a(lib_a-makebuf.o): > in function `__swhatbuf_r': > /var/tmp/builds/crossgcc/src/newlib-3.0.0.20180802/newlib/libc/stdio/makebuf.c:96: > undefined reference to `fstat' The problem is that the calls to fstat_r() in makebuf.c are not guarded by the REENTRANT_SYSCALLS_PROVIDED define. What would be the correct way to guard this? -- Josef Wolf [email protected]