From d37cc2693e23fde120635f009aa705c3a895cd59 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 16 Feb 2021 23:45:27 +0100 Subject: [PATCH] Make the gdbm subproject build on GCC 10 Two variables were not declared as extern. This works until GCC 9, due to the common model, but his has been disabled on GCC 10, which therefore requires changes. See https://bugs.gentoo.org/705898. --- vendor/gdbm/src/parseopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/gdbm/src/parseopt.c b/vendor/gdbm/src/parseopt.c index a51fc041e..032e80d65 100644 --- a/vendor/gdbm/src/parseopt.c +++ b/vendor/gdbm/src/parseopt.c @@ -252,8 +252,8 @@ print_option_descr (const char *descr, size_t lmargin, size_t rmargin) } char *parseopt_program_name; -char *parseopt_program_doc; -char *parseopt_program_args; +extern char *parseopt_program_doc; +extern char *parseopt_program_args; const char *program_bug_address = "<" PACKAGE_BUGREPORT ">"; void (*parseopt_help_hook) (FILE *stream);