Unify #if linux

This commit is contained in:
Alex Shabalin 2021-11-22 13:57:56 +01:00
parent a18d9269a5
commit db2e4489a5

View file

@ -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);