X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcompat-smp.h;fp=src%2Fcompat-smp.h;h=31fa979a7040736999823a49ca1f01b7a4d92c48;hb=474b4fbfe408d2626800f48c905b36c1c0f50b82;hp=7240d2f66b3c8af059338df28bc032192abdcd20;hpb=017308529e8daf68c7a9da1cdf692f5d149d0ccd;p=urcu.git diff --git a/src/compat-smp.h b/src/compat-smp.h index 7240d2f..31fa979 100644 --- a/src/compat-smp.h +++ b/src/compat-smp.h @@ -36,6 +36,7 @@ static inline int get_num_possible_cpus_sysconf(void) } #endif +#ifdef __linux__ /* * Get the highest CPU id from sysfs. * @@ -235,7 +236,6 @@ error: return -1; } -#ifdef __linux__ /* * On Linux try sysfs first and fallback to sysconf. */