Skip to content

Commit 0afae55

Browse files
tagunilkartben
authored andcommitted
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 <[email protected]>
1 parent 1bb5c34 commit 0afae55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libc/arcmwdt/libc-hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes)
6262
#include <zephyr/syscalls/zephyr_write_stdout_mrsh.c>
6363
#endif
6464

65-
#ifndef CONFIG_POSIX_API
65+
#ifndef CONFIG_POSIX_DEVICE_IO_ALIAS_WRITE
6666
int _write(int fd, const char *buf, unsigned int nbytes)
6767
{
6868
ARG_UNUSED(fd);

0 commit comments

Comments
 (0)