aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Shabalin <alex.shabalin@tweag.io>2021-11-22 13:57:56 +0100
committerAlex Shabalin <alex.shabalin@tweag.io>2021-11-22 13:57:56 +0100
commitdb2e4489a54c1c4bf5bd8fd2deb8b3fd02a712f1 (patch)
tree8fd6c151f241b101d89c05ed1a9decb3a6ff4c94 /src
parenta18d9269a516c5f8149b04ccb01034960f4851d8 (diff)
Unify #if linux
Diffstat (limited to 'src')
-rw-r--r--src/libstore/gc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 29d45e067..7a414da6b 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -324,7 +324,7 @@ static string quoteRegexChars(const string & raw)
return std::regex_replace(raw, specialRegex, R"(\$&)");
}
-#if defined(__linux__)
+#if __linux__
static void readFileRoots(const char * path, UncheckedRoots & roots)
{
try {
@@ -416,7 +416,7 @@ void LocalStore::findRuntimeRoots(Roots & roots, bool censor)
}
#endif
-#if defined(__linux__)
+#if __linux__
readFileRoots("/proc/sys/kernel/modprobe", unchecked);
readFileRoots("/proc/sys/kernel/fbsplash", unchecked);
readFileRoots("/proc/sys/kernel/poweroff_cmd", unchecked);