mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Add more sched.h content
This commit is contained in:
parent
f7cfe03888
commit
545a8f4cb0
3 changed files with 24 additions and 1 deletions
|
@ -632,7 +632,9 @@ static dontinline bool foreign_compile(char exe[hasatleast PATH_MAX]) {
|
|||
return false;
|
||||
}
|
||||
int pid, ws;
|
||||
char *args[] = {"cc", "-pie", "-fPIC", src, "-o", tmp, 0};
|
||||
char *args[] = {
|
||||
"cc", "-pie", "-fPIC", src, "-o", tmp, IsNetbsd() ? 0 : "-ldl", 0,
|
||||
};
|
||||
errno_t err = posix_spawnp(&pid, args[0], NULL, NULL, args, environ);
|
||||
if (err) {
|
||||
unlink(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue