mirror of
https://github.com/NixOS/nix
synced 2025-07-01 16:41:47 +02:00
Make sure we have an execvpe
on Windows too
Necessary to fix a build (that was already broken in other ways) after PR #11021.
This commit is contained in:
parent
88998fae74
commit
dbabfc92d4
5 changed files with 20 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "current-process.hh"
|
||||
#include "environment-variables.hh"
|
||||
#include "error.hh"
|
||||
#include "executable-path.hh"
|
||||
#include "file-descriptor.hh"
|
||||
#include "file-path.hh"
|
||||
#include "signals.hh"
|
||||
|
@ -377,4 +378,11 @@ bool statusOk(int status)
|
|||
{
|
||||
return status == 0;
|
||||
}
|
||||
|
||||
int execvpe(const wchar_t * file0, const wchar_t * const argv[], const wchar_t * const envp[])
|
||||
{
|
||||
auto file = ExecutablePath::load().findPath(file0);
|
||||
return _wexecve(file.c_str(), argv, envp);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue