aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-09-20 16:44:43 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-09-20 16:44:43 +0000
commitf3b0b154dddd6c270f10d3ddd6c9a2f2f7152774 (patch)
tree7ffd8adfe4184032cc804ffd208be989d4cafc5f
parent4749a5d08ca223081206c7a920b257b46f2d3357 (diff)
downloadports-f3b0b154dddd6c270f10d3ddd6c9a2f2f7152774.tar.gz
ports-f3b0b154dddd6c270f10d3ddd6c9a2f2f7152774.zip
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)
Notes
Notes: svn path=/branches/2020Q3/; revision=549119
-rw-r--r--audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c11
-rw-r--r--audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h11
2 files changed, 22 insertions, 0 deletions
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