File pacemaker-fix-missing-qbarray.h.patch of Package pacemaker.14737
commit c292e19d1b2987bdf8e56a9192c1571406726ed6
Author: Jan Pokorný <jpokorny@redhat.com>
Date: Mon Oct 31 15:14:49 2016 +0100
Low: fix missing qbarray.h include, no longer brought by qbipc[cs].h
Pacemaker should by no mean rely on fancy (and sometimes improper)
transitive includes present with some versions of libqb, and use
the API properly; here: when you use functionality from qbarray.h,
care to include it.
References:
http://oss.clusterlabs.org/pipermail/users/2016-October/004411.html
(initial report, thanks Ferdinando!)
https://github.com/ClusterLabs/libqb/pull/228/commits/c1c26c94cb38e1b40d063a7e5fa29f2de033ed37
(commit that introduced the change at the libqb side)
diff --git a/lib/common/mainloop.c b/lib/common/mainloop.c
index 40a4dcd3b..385ca7da3 100644
--- a/lib/common/mainloop.c
+++ b/lib/common/mainloop.c
@@ -33,6 +33,8 @@
#include <crm/common/mainloop.h>
#include <crm/common/ipcs.h>
+#include <qb/qbarray.h>
+
struct mainloop_child_s {
pid_t pid;
char *desc;