Include cur_restart_phase for all FT Charm++ versions.
authorEsteban Meneses <emenese2@illinois.edu>
Tue, 9 Mar 2010 17:49:50 +0000 (11:49 -0600)
committerEsteban Meneses <emenese2@illinois.edu>
Tue, 9 Mar 2010 17:49:50 +0000 (11:49 -0600)
src/conv-core/converse.h

index 52aa78fe0173cac22e4215d228f97ec57a258584..178f6c3d9a10d1bd9e6f5bce826805359d3d8613 100644 (file)
@@ -594,8 +594,11 @@ extern void CmiNumberHandlerEx(int n, CmiHandlerEx h,void *userPtr);
 #define CmiGetHandlerInfo(env) (CmiHandlerToInfo(CmiGetHandler(env)))
 #define CmiGetHandlerFunction(env) (CmiHandlerToFunction(CmiGetHandler(env)))
 
-#if CMK_MEM_CHECKPOINT
+#if __FAULT__
 extern int cur_restart_phase;      /* number of restarts */
+#endif
+
+#if CMK_MEM_CHECKPOINT
 #undef CmiSetHandler
 #define CmiSetHandler(m,v)  do {(((CmiMsgHeaderExt*)m)->hdl)=(v); (((CmiMsgHeaderExt*)m)->pn)=cur_restart_phase;} while(0)
 #define MESSAGE_PHASE_CHECK(msg)       \