1 From 1f2a0a59e3acaef88509d3ac899b905c73b7b8f8 Mon Sep 17 00:00:00 2001
2 From: James Le Cuirot <chewi@gentoo.org>
3 Date: Fri, 15 May 2020 17:45:30 +0100
4 Subject: [PATCH] Fix building with -fno-common (default from GCC 10)
8 src/input/mpegts.c | 2 ++
9 src/input/mpegts.h | 2 +-
10 3 files changed, 5 insertions(+), 3 deletions(-)
12 diff --git a/src/input.h b/src/input.h
13 index a9c96df04..3dce355c6 100644
16 @@ -133,8 +133,8 @@ void tvh_hardware_delete ( tvh_hardware_t *th );
17 extern const idclass_t tvh_input_class;
18 extern const idclass_t tvh_input_instance_class;
20 -tvh_input_list_t tvh_inputs;
21 -tvh_hardware_list_t tvh_hardware;
22 +extern tvh_input_list_t tvh_inputs;
23 +extern tvh_hardware_list_t tvh_hardware;
25 #define TVH_INPUT_FOREACH(x) LIST_FOREACH(x, &tvh_inputs, ti_link)
26 #define TVH_HARDWARE_FOREACH(x) LIST_FOREACH(x, &tvh_hardware, th_link)
27 diff --git a/src/input/mpegts.c b/src/input/mpegts.c
28 index e02d491f1..fca4f3429 100644
29 --- a/src/input/mpegts.c
30 +++ b/src/input/mpegts.c
32 #include "mpegts/fastscan.h"
33 #include "memoryinfo.h"
35 +struct mpegts_listeners mpegts_listeners;
37 extern memoryinfo_t mpegts_input_queue_memoryinfo;
38 extern memoryinfo_t mpegts_input_table_memoryinfo;
40 diff --git a/src/input/mpegts.h b/src/input/mpegts.h
41 index 9dda3baca..9c4c57b73 100644
42 --- a/src/input/mpegts.h
43 +++ b/src/input/mpegts.h
44 @@ -1149,7 +1149,7 @@ typedef struct mpegts_listener
45 void (*ml_mux_delete) (mpegts_mux_t *mm, void *p);
48 -LIST_HEAD(,mpegts_listener) mpegts_listeners;
49 +extern LIST_HEAD(mpegts_listeners, mpegts_listener) mpegts_listeners;
51 #define mpegts_add_listener(ml)\
52 LIST_INSERT_HEAD(&mpegts_listeners, ml, ml_link)