mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 20:28:30 +00:00
Get all tests passing on NetBSD
This commit is contained in:
parent
23ae9dfceb
commit
b2cd58a322
41 changed files with 202 additions and 655 deletions
|
@ -28,7 +28,7 @@ static int __pid;
|
|||
|
||||
static int __getpid(void) {
|
||||
if (!IsWindows()) {
|
||||
return sys_getpid();
|
||||
return sys_getpid().ax;
|
||||
} else {
|
||||
return GetCurrentProcessId();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ static void __updatepid(void) {
|
|||
int getpid(void) {
|
||||
static bool once;
|
||||
if (__vforked) {
|
||||
return sys_getpid();
|
||||
return sys_getpid().ax;
|
||||
}
|
||||
if (!once) {
|
||||
__updatepid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue