diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-11-27 18:36:49 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2020-11-27 18:36:49 +0100 |
commit | e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c (patch) | |
tree | afa5681884c6b6b9baab3bbf04829f738f467788 /sci-chemistry/elem/files/elem-1.0.3-fno-common.patch | |
parent | app-text/hnb: port to EAPI 7 (diff) | |
download | gentoo-e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c.tar.gz gentoo-e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c.tar.bz2 gentoo-e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c.zip |
sci-chemistry/elem: fix build with gcc-10
Closes: https://github.com/gentoo/gentoo/pull/18431
Closes: https://bugs.gentoo.org/706938
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 'sci-chemistry/elem/files/elem-1.0.3-fno-common.patch')
-rw-r--r-- | sci-chemistry/elem/files/elem-1.0.3-fno-common.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch b/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch new file mode 100644 index 000000000000..402ae0790587 --- /dev/null +++ b/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch @@ -0,0 +1,24 @@ +--- a/elem.c ++++ b/elem.c +@@ -11,6 +11,9 @@ + #include "deutsch.h" + #endif + ++double amsumme; ++FL_OBJECT *massensumme; ++ + + + FD_Periodensystem *create_form_Periodensystem(void) +--- a/elem.h ++++ b/elem.h +@@ -154,7 +154,7 @@ typedef struct { + void *vdata; + long ldata; + } FD_Periodensystem; +-double amsumme; ++extern double amsumme; + extern FD_Periodensystem * create_form_Periodensystem(void); +- FL_OBJECT *massensumme; ++extern FL_OBJECT *massensumme; + #endif /* FD_Periodensystem_h_ */ |