File bsc#1160410-0001-Refactor-attrd-properly-declare-global-variables-as-.patch of Package pacemaker.15719
From 77a79358cc72174cbba0dd44e313f6d06d96dbf4 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Thu, 2 Jan 2020 09:51:52 -0600
Subject: [PATCH] Refactor: attrd: properly declare global variables as extern
in header
Restores buildability with GCC 10
---
attrd/internal.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
Index: pacemaker-1.1.18+20180430.b12c320f5/attrd/internal.h
===================================================================
--- pacemaker-1.1.18+20180430.b12c320f5.orig/attrd/internal.h
+++ pacemaker-1.1.18+20180430.b12c320f5/attrd/internal.h
@@ -46,9 +46,9 @@ typedef struct attribute_value_s {
gboolean seen;
} attribute_value_t;
-crm_cluster_t *attrd_cluster;
-GHashTable *attributes;
-election_t *writer;
+extern crm_cluster_t *attrd_cluster;
+extern GHashTable *attributes;
+extern election_t *writer;
#define attrd_send_ack(client, id, flags) \
crm_ipcs_send_ack((client), (id), (flags), "ack", __FUNCTION__, __LINE__)