diff options
author | Alex Shabalin <alex.shabalin@tweag.io> | 2021-11-22 13:57:56 +0100 |
---|---|---|
committer | Alex Shabalin <alex.shabalin@tweag.io> | 2021-11-22 13:57:56 +0100 |
commit | db2e4489a54c1c4bf5bd8fd2deb8b3fd02a712f1 (patch) | |
tree | 8fd6c151f241b101d89c05ed1a9decb3a6ff4c94 /src/libstore/gc.cc | |
parent | a18d9269a516c5f8149b04ccb01034960f4851d8 (diff) |
Unify #if linux
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 4 |
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); |