aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/gc.cc
diff options
context:
space:
mode:
authorAlex Shabalin <alex.shabalin@tweag.io>2021-11-19 15:22:31 +0100
committerAlex Shabalin <alex.shabalin@tweag.io>2021-11-19 15:22:31 +0100
commita18d9269a516c5f8149b04ccb01034960f4851d8 (patch)
treefbf610349756bc8c6d2c92fb5115d4642a09d2a2 /src/libstore/gc.cc
parent2eefdc720867fab8c8e33eeed031d5906d1a9dde (diff)
Fix build warnings on MacOS
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 8030c84f5..29d45e067 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -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)
{