add proper include for multithreading support for apple.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Oct 2008 05:22:25 +0000 (05:22 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Oct 2008 05:22:25 +0000 (05:22 +0000)
src/conv-core/cputopology.C

index 3f358a1b6115bb12e590d9cb8aaecd669ca4cf0d..616119b22fafe3dbdc4c3ff8d7ff080853a40de8 100644 (file)
@@ -28,6 +28,9 @@ cpu affinity.
 #include <stdlib.h>
 #include <stdio.h>
 
+#if defined(__APPLE__) 
+#include <Carbon/Carbon.h>
+#endif
 
 extern "C" int Cmi_num_cores(void) {
   int a = 1;