diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-12-28 16:17:11 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-12-28 16:17:11 +0100 |
commit | 2c78de9033cf97213ddd4983b04df2eef995fc39 (patch) | |
tree | c422754a409ea15388a55f7fcf5277f7b146105f /sys-libs/musl-nscd/files | |
parent | sci-libs/libccd: Cleanup old (diff) | |
download | gentoo-2c78de9033cf97213ddd4983b04df2eef995fc39.tar.gz gentoo-2c78de9033cf97213ddd4983b04df2eef995fc39.tar.bz2 gentoo-2c78de9033cf97213ddd4983b04df2eef995fc39.zip |
sys-libs/musl-nscd: Fix build with gcc-10
Closes: https://github.com/gentoo/gentoo/pull/18635
Closes: https://bugs.gentoo.org/708632
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-libs/musl-nscd/files')
-rw-r--r-- | sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch b/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch new file mode 100644 index 000000000000..fce44ecdef7d --- /dev/null +++ b/sys-libs/musl-nscd/files/musl-nscd-1.0.2-fno-common.patch @@ -0,0 +1,36 @@ +--- a/include/modules.h ++++ b/include/modules.h +@@ -28,7 +28,7 @@ struct mod_passwd { + link_t link; + }; + +-list_t passwd_mods; +-list_t group_mods; ++extern list_t passwd_mods; ++extern list_t group_mods; + + #endif +--- a/src/main.c ++++ b/src/main.c +@@ -18,6 +18,9 @@ + #include "parse.h" + #include "util.h" + ++list_t passwd_mods; ++list_t group_mods; ++ + static void *get_dll(const char *service) + { + char *path; +--- a/src/socket_handle.c ++++ b/src/socket_handle.c +@@ -19,6 +19,9 @@ + #include "modules.h" + #include "list.h" + ++extern list_t passwd_mods; ++extern list_t group_mods; ++ + static int return_result(int fd, int swap, uint32_t reqtype, void *key); + + struct pthread_args { |