posix: fix missing _open for fopen support

Using fopen() in application failed to build when configured with
	CONFIG_NEWLIB_LIBC=y
	CONFIG_POSIX_API=y

Signed-off-by: Arnaud Mouiche <arnaud.mouiche@invoxia.com>
This commit is contained in:
Arnaud Mouiche 2020-09-16 09:34:40 +02:00 committed by Andrew Boie
commit fd9766c961

View file

@ -123,6 +123,8 @@ int open(const char *name, int flags, ...)
return fd; return fd;
} }
FUNC_ALIAS(open, _open, int);
static int fs_close_vmeth(void *obj) static int fs_close_vmeth(void *obj)
{ {
struct posix_fs_desc *ptr = obj; struct posix_fs_desc *ptr = obj;