fix: ifdef linux specific cpu count compat
[userspace-rcu.git] / src / compat-smp.h
index 7240d2f66b3c8af059338df28bc032192abdcd20..31fa979a7040736999823a49ca1f01b7a4d92c48 100644 (file)
@@ -36,6 +36,7 @@ static inline int get_num_possible_cpus_sysconf(void)
 }
 #endif
 
 }
 #endif
 
+#ifdef __linux__
 /*
  * Get the highest CPU id from sysfs.
  *
 /*
  * Get the highest CPU id from sysfs.
  *
@@ -235,7 +236,6 @@ error:
        return -1;
 }
 
        return -1;
 }
 
-#ifdef __linux__
 /*
  * On Linux try sysfs first and fallback to sysconf.
  */
 /*
  * On Linux try sysfs first and fallback to sysconf.
  */
This page took 0.022922 seconds and 4 git commands to generate.