Skip to content

Commit be086f1

Browse files
cfriedtnashif
authored andcommitted
posix: procN: add missing alias for getpid()
Newlib requires an alias for the getpid() function. There was a Kconfig already present for doing so, but the actual alias was missing. So this is technically a bugfix. Signed-off-by: Chris Friedt <[email protected]>
1 parent f299516 commit be086f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/posix/options/multi_process.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ pid_t getpid(void)
2121

2222
return 42;
2323
}
24+
#ifdef CONFIG_POSIX_MULTI_PROCESS_ALIAS_GETPID
25+
FUNC_ALIAS(getpid, _getpid, pid_t);
26+
#endif /* CONFIG_POSIX_MULTI_PROCESS_ALIAS_GETPID */

0 commit comments

Comments
 (0)