fix: ifdef linux specific cpu count compat
[urcu.git] / tests / unit / get_cpu_mask_from_sysfs.c
index 91f2ebf2b31ce48a0dd2e1f32506a6f55e2fbbdf..7938f234bc8e042cf52ec4a7a90769e9ddc8b07c 100644 (file)
@@ -7,6 +7,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#ifdef __linux__
+
 #include "compat-smp.h"
 
 int main(int argc, char *argv[])
@@ -28,3 +30,11 @@ int main(int argc, char *argv[])
        else
                return EXIT_FAILURE;
 }
+
+#else
+
+int main(void)
+{
+       return EXIT_SUCCESS;
+}
+#endif
This page took 0.022597 seconds and 4 git commands to generate.