Merge pull request #8040 from NixOS/macos-warning

Fix macOS warning
This commit is contained in:
Eelco Dolstra 2023-03-13 14:15:54 +01:00 committed by GitHub
commit 879472e414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1070,12 +1070,14 @@ static pid_t doFork(bool allowVfork, std::function<void()> fun)
}
#if __linux__
static int childEntry(void * arg)
{
auto main = (std::function<void()> *) arg;
(*main)();
return 1;
}
#endif
pid_t startProcess(std::function<void()> fun, const ProcessOptions & options)