posix: fs: avoid adding open() alias with newlib and picolibc
Newlib and PicoLibc both already alias `open` to `_open`. Signed-off-by: Chris Friedt <cfriedt@meta.com>
This commit is contained in:
parent
e431cfbbe5
commit
3aff1ff0c2
1 changed files with 2 additions and 0 deletions
|
@ -123,7 +123,9 @@ int open(const char *name, int flags, ...)
|
|||
return fd;
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_PICOLIBC)
|
||||
FUNC_ALIAS(open, _open, int);
|
||||
#endif
|
||||
|
||||
static int fs_close_vmeth(void *obj)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue