eppic/eppic-use-extern-in-devel-declaration.patch
Petr Tesařík 19230309bd Accepting request 812990 from home:dmair:branches:Kernel:kdump
- eppic-use-extern-in-devel-declaration.patch: Use extern for
  declaration of lastv in libeppic/eppic.h. The file is used as the
  devel eppic.h and if used in multiple sources for the same devel
  link target and using gcc 10 the default behavior is to treat the
  mutiple declarations as a link error.

OBS-URL: https://build.opensuse.org/request/show/812990
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/eppic?expand=0&rev=15
2020-06-22 21:10:54 +00:00

14 lines
380 B
Diff

Index: b/libeppic/eppic.h
===================================================================
--- a/libeppic/eppic.h
+++ b/libeppic/eppic.h
@@ -467,7 +467,7 @@ type_t *eppic_addstorage(type_t *t1, ty
type_t *eppic_getvoidstruct(int ctype);
extern int lineno, needvar, instruct, nomacs, eppic_legacy;
-node_t *lastv;
+extern node_t *lastv;
#define NULLNODE ((node_t*)0)