Skip to content

Commit e2dd67e

Browse files
committed
libc: newlib: hooks: correct signature for open()
The function signature for open() in libc-hooks.c was incorrect. Additionally, the ALIAS_OF() macro causes a compile error, because it simplifies the open function signature to int open(), which is a conflicting definition. Use the correct definition to get around compile errors. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
1 parent b9ee6af commit e2dd67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libc/newlib/libc-hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int _open(const char *name, int flags, ...)
243243
{
244244
return -1;
245245
}
246-
__weak FUNC_ALIAS(_open, open, int);
246+
__weak int open(const char *name, int mode, ...) ALIAS_OF(_open);
247247

248248
int _close(int file)
249249
{

0 commit comments

Comments
 (0)