booth/0009-fix-gcc-10-multiple-definition-error.patch
2021-08-26 11:23:29 +08:00

26 lines
654 B
Diff

From d2e924aacf46884c1168caa4272eaf6e99c3c0c0 Mon Sep 17 00:00:00 2001
From: yangzhao_kl <yangzhao1@kylinos.cn>
Date: Thu, 26 Aug 2021 11:13:45 +0800
Subject: [PATCH] fix gcc 10 multiple definition error
---
src/pacemaker.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pacemaker.h b/src/pacemaker.h
index ccc8861..3a81724 100644
--- a/src/pacemaker.h
+++ b/src/pacemaker.h
@@ -32,7 +32,7 @@ struct ticket_handler {
int (*del_attr) (struct ticket_config *tk, const char *a);
};
-struct ticket_handler pcmk_handler;
+extern struct ticket_handler pcmk_handler;
const char * interpret_rv(int rv);
--
2.31.1.windows.1