summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-10-29 23:09:10 +0100
committerDavid Seifert <soap@gentoo.org>2020-10-29 23:09:10 +0100
commit0f8c69f49c680f95fec772042e668c4d0a127028 (patch)
tree994b02881a92073f0f061397ad8f29262917a652 /sys-apps/isapnptools/files
parentgames-board/gnushogi: Fix -fno-common (diff)
downloadgentoo-0f8c69f49c680f95fec772042e668c4d0a127028.tar.gz
gentoo-0f8c69f49c680f95fec772042e668c4d0a127028.tar.bz2
gentoo-0f8c69f49c680f95fec772042e668c4d0a127028.zip
sys-apps/isapnptools: Fix -fno-common
Closes: https://bugs.gentoo.org/706998 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-apps/isapnptools/files')
-rw-r--r--sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch b/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch
new file mode 100644
index 00000000000..54da41cdd60
--- /dev/null
+++ b/sys-apps/isapnptools/files/isapnptools-1.27-fno-common.patch
@@ -0,0 +1,22 @@
+--- a/src/isapnp_main.c
++++ b/src/isapnp_main.c
+@@ -1153,7 +1153,7 @@
+ return 0;
+ }
+
+-unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
++extern unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
+ static char *boardid[NUM_CARDS+1];
+ static unsigned long serno[NUM_CARDS+1];
+
+--- a/src/isapnp_main.l
++++ b/src/isapnp_main.l
+@@ -363,7 +363,7 @@
+ return 0;
+ }
+
+-unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
++extern unsigned char serial_identifier[NUM_CARDS+1][IDENT_LEN];
+ static char *boardid[NUM_CARDS+1];
+ static unsigned long serno[NUM_CARDS+1];
+