diff --git a/exec/tlist.h b/exec/tlist.h index 1bc5deba..3306ee6b 100644 --- a/exec/tlist.h +++ b/exec/tlist.h @@ -45,6 +45,10 @@ #include "../include/list.h" +#if defined(OPENAIS_BSD) || defined(OPENAIS_DARWIN) + #define HZ 100 /* 10ms */ +#endif + typedef void * timer_handle; struct timerlist { diff --git a/exec/totemconfig.c b/exec/totemconfig.c index 4ef304a0..8489d48c 100644 --- a/exec/totemconfig.c +++ b/exec/totemconfig.c @@ -53,10 +53,7 @@ #include "totemconfig.h" #include "print.h" #include "objdb.h" - -#if defined(OPENAIS_BSD) || defined(OPENAIS_DARWIN) - #define HZ 100 /* 10ms */ -#endif +#include "tlist.h" /* for HZ */ #define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4 #define TOKEN_TIMEOUT 1000