X-Git-Url: http://git.lttng.org/?p=userspace-rcu.git;a=blobdiff_plain;f=src%2Fcompat-smp.h;fp=src%2Fcompat-smp.h;h=31fa979a7040736999823a49ca1f01b7a4d92c48;hp=7240d2f66b3c8af059338df28bc032192abdcd20;hb=da44a94383dab6fcf2001e6d447a503259476760;hpb=4de89c1129d52f0f13b63ec037802e095c506875 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. */