aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/drbd/drbd-utils/0001-v84-Make-setup_options-definitions-as-extern.patch
blob: 6702f3bde4e74069134e157d9562fda9990519f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From d095caf6f8f77fe056fb90ccd5d89c207a7f346d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 12 Aug 2020 12:59:38 -0700
Subject: [PATCH] v84: Make setup_options definitions as extern

This is already defined in drbdadm_main.c, therefore make this
declaration to be extern for other modules

Fixes compatibility with gcc-10 which uses -fno-common by default

Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/7]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 user/v84/drbdadm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/user/v84/drbdadm.h b/user/v84/drbdadm.h
index ed63d78c..8469f1c4 100644
--- a/user/v84/drbdadm.h
+++ b/user/v84/drbdadm.h
@@ -251,7 +251,7 @@ struct setup_option {
 	bool explicit;
 	char *option;
 };
-struct setup_option *setup_options;
+extern struct setup_option *setup_options;
 
 extern void add_setup_option(bool explicit, char *option);
 
-- 
2.28.0