Skip to content

Commit

Permalink
posix: procN: add missing alias for getpid()
Browse files Browse the repository at this point in the history
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 <cfriedt@tenstorrent.com>
  • Loading branch information
cfriedt authored and nashif committed Jun 27, 2024
1 parent f299516 commit be086f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/posix/options/multi_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ pid_t getpid(void)

return 42;
}
#ifdef CONFIG_POSIX_MULTI_PROCESS_ALIAS_GETPID
FUNC_ALIAS(getpid, _getpid, pid_t);
#endif /* CONFIG_POSIX_MULTI_PROCESS_ALIAS_GETPID */

0 comments on commit be086f1

Please sign in to comment.