Просмотр исходного кода

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
Fabien Thomas 18 лет назад
Родитель
Сommit
b392956ef4
2 измененных файлов с 5 добавлено и 4 удалено
  1. 4 0
      exec/tlist.h
  2. 1 4
      exec/totemconfig.c

+ 4 - 0
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 {

+ 1 - 4
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