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