Andrew Geissler | 4b7c115 | 2020-11-30 19:55:29 -0600 | [diff] [blame] | 1 | From 8c0e4b7907eb577b1e5214f9a7bc75d5c3263b0a Mon Sep 17 00:00:00 2001 |
| 2 | From: Ariadne Conill <ariadne@dereferenced.org> |
| 3 | Date: Sat, 14 Nov 2020 22:55:30 -0700 |
| 4 | Subject: [PATCH] Fix build under GCC -fno-common. |
| 5 | |
| 6 | Upstream-Status: Submitted [https://github.com/pikhq/musl-nscd/pull/11] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | include/modules.h | 4 ++-- |
| 10 | src/main.c | 3 +++ |
| 11 | 2 files changed, 5 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/include/modules.h b/include/modules.h |
| 14 | index 70c1960..e77ec58 100644 |
| 15 | --- a/include/modules.h |
| 16 | +++ b/include/modules.h |
| 17 | @@ -28,7 +28,7 @@ struct mod_passwd { |
| 18 | link_t link; |
| 19 | }; |
| 20 | |
| 21 | -list_t passwd_mods; |
| 22 | -list_t group_mods; |
| 23 | +extern list_t passwd_mods; |
| 24 | +extern list_t group_mods; |
| 25 | |
| 26 | #endif |
| 27 | diff --git a/src/main.c b/src/main.c |
| 28 | index c1a78bb..808ef74 100644 |
| 29 | --- a/src/main.c |
| 30 | +++ b/src/main.c |
| 31 | @@ -18,6 +18,9 @@ |
| 32 | #include "parse.h" |
| 33 | #include "util.h" |
| 34 | |
| 35 | +list_t passwd_mods; |
| 36 | +list_t group_mods; |
| 37 | + |
| 38 | static void *get_dll(const char *service) |
| 39 | { |
| 40 | char *path; |
| 41 | -- |
| 42 | 2.29.2 |
| 43 | |