From f3b0b154dddd6c270f10d3ddd6c9a2f2f7152774 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 20 Sep 2020 16:44:43 +0000 Subject: MFH: r549049 audio/stegosaurus-lv2: Fix build on 13-CURRENT with clang-11 Symbol was defined in the header and included mutiple times. Reported by: fallout Approved by: ports-secteam (fluffy) --- audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c | 11 +++++++++++ audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c create mode 100644 audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h diff --git a/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c new file mode 100644 index 000000000000..7d99a6ca9f8d --- /dev/null +++ b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c @@ -0,0 +1,11 @@ +--- stegosaurus_synth.c.orig 2020-09-19 18:50:38 UTC ++++ stegosaurus_synth.c +@@ -2,6 +2,8 @@ + #include "stegosaurus_synth.h" + #include "noise.h" + ++stegosaurus* stegosaurus_self = 0; ++ + voice* voices[4]; + int next_voice = 0; + int keys[128]; diff --git a/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h new file mode 100644 index 000000000000..074fdd7321d1 --- /dev/null +++ b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h @@ -0,0 +1,11 @@ +--- stegosaurus_synth.h.orig 2020-09-19 18:50:03 UTC ++++ stegosaurus_synth.h +@@ -26,7 +26,7 @@ void stegosaurus_synth_set_osc_waves(int, int, int); + #define ENV_STATE_KILL 7 + + +-stegosaurus* stegosaurus_self; ++extern stegosaurus* stegosaurus_self; + + + typedef struct -- cgit v1.2.3