From b392956ef47a8343db456e14b027d9d9d03988a6 Mon Sep 17 00:00:00 2001 From: Fabien Thomas Date: Tue, 12 Jun 2007 16:43:50 +0000 Subject: [PATCH] repair BSD/Darwin build by moving HZ constant in tlist.h git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1381 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/tlist.h | 4 ++++ exec/totemconfig.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) 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