forked-daapd: fix compilation with GCC10
[feed/packages.git] / sound / forked-daapd / patches / 020-gcc10.patch
diff --git a/sound/forked-daapd/patches/020-gcc10.patch b/sound/forked-daapd/patches/020-gcc10.patch
new file mode 100644 (file)
index 0000000..c0ddeb4
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/src/outputs.h
++++ b/src/outputs.h
+@@ -185,7 +185,7 @@ struct output_data
+   int samples;
+ };
+-struct output_buffer
++static struct output_buffer
+ {
+   struct timespec pts;
+   // The array is two larger than max quality subscriptions because element 0
+@@ -262,7 +262,7 @@ struct output_definition
+ };
+ // Our main list of devices, not for use by backend modules
+-struct output_device *output_device_list;
++static struct output_device *output_device_list;
+ /* ------------------------------- General use ------------------------------ */