fixed compilation error for non-Linux platforms.
authorGengbin Zheng <gzheng@bp-login1.(none)>
Thu, 24 Feb 2011 01:10:13 +0000 (19:10 -0600)
committerGengbin Zheng <gzheng@bp-login1.(none)>
Thu, 24 Feb 2011 01:10:13 +0000 (19:10 -0600)
src/conv-core/cpuaffinity.c

index e316a3da6b39b970e0453b7de6c66c6e65f000b5..1103b8b618d3e2f7fcccfa0a21e6a8fc2b2036c8 100644 (file)
@@ -622,8 +622,8 @@ void CmiInitCPUAffinity(char **argv)
 void CmiInitCPUAffinityUtil(){
     CpvInitialize(int, myCPUAffToCore);
     CpvAccess(myCPUAffToCore) = -1;
-    CpvInitialize(void *, myProcStatFP);
 #if CMK_OS_IS_LINUX
+    CpvInitialize(void *, myProcStatFP);
     char fname[64];
     CmiLock(_smp_mutex);
 #if CMK_SMP
@@ -638,8 +638,6 @@ void CmiInitCPUAffinityUtil(){
         CmiPrintf("WARNING: ERROR IN OPENING FILE %s on PROC %d, CmiOnCore() SHOULDN'T BE CALLED\n", fname, CmiMyPe()); 
     }
 */
-#else
-    CpvAccess(myProcStatFP) = NULL;
 #endif
 }