Add more sched.h content

This commit is contained in:
Justine Tunney 2023-11-18 08:08:15 -08:00
parent f7cfe03888
commit 545a8f4cb0
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 24 additions and 1 deletions

View file

@ -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);