libc: newlib: libc-hooks: s/CONFIG_POSIX_FS/CONFIG_POSIX_API/

read/write/etc. are defined in case CONFIG_POSIX_API is defined, and
we shouldn't provide duplicates.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2018-10-09 19:40:12 +03:00 committed by Carles Cufí
commit b2fd1a27ac

View file

@ -122,7 +122,7 @@ Z_SYSCALL_HANDLER(_zephyr_write, buf, nbytes)
}
#endif
#ifndef CONFIG_POSIX_FS
#ifndef CONFIG_POSIX_API
int _read(int fd, char *buf, int nbytes)
{
ARG_UNUSED(fd);