use CMK_CCS_AVAILABLE
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 25 Nov 2008 16:59:59 +0000 (16:59 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 25 Nov 2008 16:59:59 +0000 (16:59 +0000)
src/conv-core/debug-conv.c

index 5e0220ae7581480acf669c475810847f16d70cca..3700bbdaf3434e0214dc0aae0e31a3a8d38fdf70 100644 (file)
@@ -127,6 +127,7 @@ CpvDeclare(int, CpdDebugCallMemStat_Index);
 CpvStaticDeclare(CcsDelayedReply, memStatDelayedReply);
 
 static void CpdDebugReturnMemStat(void *stat) {
+#if CMK_CCS_AVAILABLE
   pup_er sizerNet = pup_new_network_sizer();
   pup_er sizer = pup_new_fmt(sizerNet);
   char *buf;
@@ -147,6 +148,7 @@ static void CpdDebugReturnMemStat(void *stat) {
   pup_destroy(packerNet);
   pup_destroy(packer);
   free(buf);
+#endif
 }
 
 static void CpdDebugCallMemStat(char *msg) {