Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 1 | From d095caf6f8f77fe056fb90ccd5d89c207a7f346d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 12 Aug 2020 12:59:38 -0700 |
| 4 | Subject: [PATCH] v84: Make setup_options definitions as extern |
| 5 | |
| 6 | This is already defined in drbdadm_main.c, therefore make this |
| 7 | declaration to be extern for other modules |
| 8 | |
| 9 | Fixes compatibility with gcc-10 which uses -fno-common by default |
| 10 | |
| 11 | Upstream-Status: Submitted [https://github.com/LINBIT/drbd-utils/pull/7] |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | user/v84/drbdadm.h | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/user/v84/drbdadm.h b/user/v84/drbdadm.h |
| 18 | index ed63d78c..8469f1c4 100644 |
| 19 | --- a/user/v84/drbdadm.h |
| 20 | +++ b/user/v84/drbdadm.h |
| 21 | @@ -251,7 +251,7 @@ struct setup_option { |
| 22 | bool explicit; |
| 23 | char *option; |
| 24 | }; |
| 25 | -struct setup_option *setup_options; |
| 26 | +extern struct setup_option *setup_options; |
| 27 | |
| 28 | extern void add_setup_option(bool explicit, char *option); |
| 29 | |
| 30 | -- |
| 31 | 2.28.0 |
| 32 | |