tvheadend: fix compilation with GCC 10
authorRosen Penev <rosenp@gmail.com>
Mon, 10 Aug 2020 21:45:40 +0000 (14:45 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 10 Aug 2020 22:52:59 +0000 (15:52 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
multimedia/tvheadend/Makefile
multimedia/tvheadend/patches/030-gcc10.patch [new file with mode: 0644]

index 9108b92963604a9b4c952caa3c27fe96de309956..e75e90cf042a482cdb86979f9ca0f4d795c7257f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tvheadend
 PKG_VERSION:=4.0.10
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tvheadend/tvheadend/tar.gz/v$(PKG_VERSION)?
diff --git a/multimedia/tvheadend/patches/030-gcc10.patch b/multimedia/tvheadend/patches/030-gcc10.patch
new file mode 100644 (file)
index 0000000..8358f99
--- /dev/null
@@ -0,0 +1,24 @@
+--- a/src/input.h
++++ b/src/input.h
+@@ -120,8 +120,8 @@ void tvh_hardware_delete ( tvh_hardware_t *th );
+ extern const idclass_t tvh_input_class;
+ extern const idclass_t tvh_input_instance_class;
+-tvh_input_list_t    tvh_inputs;
+-tvh_hardware_list_t tvh_hardware;
++extern tvh_input_list_t    tvh_inputs;
++extern tvh_hardware_list_t tvh_hardware;
+ #define TVH_INPUT_FOREACH(x) LIST_FOREACH(x, &tvh_inputs, ti_link)
+ #define TVH_HARDWARE_FOREACH(x) LIST_FOREACH(x, &tvh_hardware, th_link)
+--- a/src/input/mpegts.h
++++ b/src/input/mpegts.h
+@@ -1017,7 +1017,7 @@ typedef struct mpegts_listener
+   void (*ml_mux_delete) (mpegts_mux_t *mm, void *p);
+ } mpegts_listener_t;
+-LIST_HEAD(,mpegts_listener) mpegts_listeners;
++static LIST_HEAD(,mpegts_listener) mpegts_listeners;
+ #define mpegts_add_listener(ml)\
+   LIST_INSERT_HEAD(&mpegts_listeners, ml, ml_link)