aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gdbm-gcc-compat.patch
blob: c2e187834a855c91f2dfbc4711ec5c4fc5bf622b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix build failure with GCC 10 due to duplicate definitions.  It can be
reproduced on older compilers with -fno-common.

Fix taken from Gentoo: https://bugs.gentoo.org/705898

--- a/src/parseopt.c
+++ b/src/parseopt.c
@@ -255,8 +255,6 @@ print_option_descr (const char *descr, size_t lmargin, size_t rmargin)
 }
 
 char *parseopt_program_name;
-char *parseopt_program_doc;
-char *parseopt_program_args;
 const char *program_bug_address = "<" PACKAGE_BUGREPORT ">";
 void (*parseopt_help_hook) (FILE *stream);