blob: 6fee0526d23f9dde714e00aad00ae56ef43ea8e7 [file] [log] [blame]
Andrew Geissler4b7c1152020-11-30 19:55:29 -06001From 8c0e4b7907eb577b1e5214f9a7bc75d5c3263b0a Mon Sep 17 00:00:00 2001
2From: Ariadne Conill <ariadne@dereferenced.org>
3Date: Sat, 14 Nov 2020 22:55:30 -0700
4Subject: [PATCH] Fix build under GCC -fno-common.
5
6Upstream-Status: Submitted [https://github.com/pikhq/musl-nscd/pull/11]
7Signed-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
13diff --git a/include/modules.h b/include/modules.h
14index 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
27diff --git a/src/main.c b/src/main.c
28index 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--
422.29.2
43