libc: arcmwdt: replace _write if not provided by the POSIX subsystem
If CONFIG_POSIX_API is enabled, but CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE is not, the _write replacement should be provided to make stdio work. Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
This commit is contained in:
parent
1bb5c34f98
commit
0afae55b4f
@ -62,7 +62,7 @@ static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes)
|
||||
#include <zephyr/syscalls/zephyr_write_stdout_mrsh.c>
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_POSIX_API
|
||||
#ifndef CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE
|
||||
int _write(int fd, const char *buf, unsigned int nbytes)
|
||||
{
|
||||
ARG_UNUSED(fd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user