mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01: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
18
src/libutil/exec.hh
Normal file
18
src/libutil/exec.hh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "os-string.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
* `execvpe` is a GNU extension, so we need to implement it for other POSIX
|
||||
* platforms.
|
||||
*
|
||||
* We use our own implementation unconditionally for consistency.
|
||||
*/
|
||||
int execvpe(
|
||||
const OsString::value_type * file0,
|
||||
const OsString::value_type * const argv[],
|
||||
const OsString::value_type * const envp[]);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue