[Ocfs2-devel] [Patch 3/3] ocfs2-tools: Fix compilation of Pacemaker glue for ocfs2_controld
Andrew Beekhof
abeekhof at suse.de
Tue Nov 18 02:18:45 PST 2008
Fix compilation of Pacemaker glue for ocfs2_controld when the
underlying Pacemaker installation supports both the Heartbeat and
OpenAIS stack
Signed-off-by: Andrew Beekhof <abeekhof at suse.de>
--- upstream/ocfs2_controld/pacemaker.c 2008-09-11 16:51:11.000000000
+0200
+++ dev/ocfs2_controld/pacemaker.c 2008-10-23 13:14:56.000000000 +0200
@@ -20,8 +20,16 @@
#include <unistd.h>
#include <syslog.h>
-#include <crm/crm.h>
-#include <crm/common/cluster.h>
+#include <bzlib.h>
+
+#include <pacemaker/crm_config.h>
+/* heartbeat support is irrelevant here */
+#undef SUPPORT_HEARTBEAT
+#define SUPPORT_HEARTBEAT 0
+
+#include <pacemaker/crm/crm.h>
+#include <pacemaker/crm/ais.h>
+#include <pacemaker/crm/common/cluster.h>
#include <fencing/stonithd_api.h>
#include "ocfs2-kernel/kernel-list.h"
@@ -29,9 +37,6 @@
#include "ocfs2_controld.h"
-#include <bzlib.h>
-#include <crm/crm.h>
-#include <crm/ais.h>
#include <sys/utsname.h>
int our_nodeid = 0;
More information about the Ocfs2-devel
mailing list