mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix build warnings on MacOS
This commit is contained in:
parent
2eefdc7208
commit
a18d9269a5
2 changed files with 6 additions and 1 deletions
|
@ -324,6 +324,7 @@ static string quoteRegexChars(const string & raw)
|
|||
return std::regex_replace(raw, specialRegex, R"(\$&)");
|
||||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
static void readFileRoots(const char * path, UncheckedRoots & roots)
|
||||
{
|
||||
try {
|
||||
|
@ -333,6 +334,7 @@ static void readFileRoots(const char * path, UncheckedRoots & roots)
|
|||
throw;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void LocalStore::findRuntimeRoots(Roots & roots, bool censor)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue