mirror of
https://github.com/NixOS/nix
synced 2025-07-16 02:01:59 +02:00
Address ifdef problem with macOS/BSD sandboxing
(cherry picked from commit e2ef2cfcbc
)
This commit is contained in:
parent
eb3c004972
commit
1cf202650a
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ bool useBuildUsers()
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
static bool b = (settings.buildUsersGroup != "" || settings.autoAllocateUids) && isRootUser();
|
static bool b = (settings.buildUsersGroup != "" || settings.autoAllocateUids) && isRootUser();
|
||||||
return b;
|
return b;
|
||||||
#elif defined(__APPLE__) && defined(__FreeBSD__)
|
#elif defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
static bool b = settings.buildUsersGroup != "" && isRootUser();
|
static bool b = settings.buildUsersGroup != "" && isRootUser();
|
||||||
return b;
|
return b;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue