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:
Ilya Tagunov 2024-11-27 12:57:43 +00:00 committed by Benjamin Cabé
parent 1bb5c34f98
commit 0afae55b4f

View File

@ -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);