Skip to content

Instantly share code, notes, and snippets.

@kaeltis
Created January 7, 2018 21:44
Show Gist options
  • Save kaeltis/d87dc76fc604f8b3373231dcd2d76568 to your computer and use it in GitHub Desktop.
Save kaeltis/d87dc76fc604f8b3373231dcd2d76568 to your computer and use it in GitHub Desktop.
Hack to make linuxtv-dvb-apps work with Kernel >= 4.14
diff -r 3d43b280298c util/dst-utils/dst_test.c
--- a/util/dst-utils/dst_test.c Fri Mar 21 20:26:36 2014 +0100
+++ b/util/dst-utils/dst_test.c Sun Jan 07 22:41:44 2018 +0100
@@ -36,6 +36,15 @@
#define CA_NODE "/dev/dvb/adapter0/ca0"
+//https://github.com/braice/MuMuDVB/commit/596f7dbebd2590f7e77cf755af46952f340ddb97
+#ifndef CA_SET_PID
+typedef struct ca_pid {
+ unsigned int pid;
+ int index; /* -1 == disable*/
+ } ca_pid_t;
+//We should not be able to get it so a number that is unlikely to happen
+#define CA_SET_PID 42424242
+#endif
+
static int dst_comms(int cafd, uint32_t tag, uint32_t function, struct ca_msg *msg)
{
if (tag) {
diff -r 3d43b280298c util/scan/Makefile
--- a/util/scan/Makefile Fri Mar 21 20:26:36 2014 +0100
+++ b/util/scan/Makefile Sun Jan 07 22:41:44 2018 +0100
@@ -25,6 +25,6 @@
$(objects): atsc_psip_section.c atsc_psip_section.h
atsc_psip_section.c atsc_psip_section.h:
- perl section_generate.pl atsc_psip_section.pl
+ perl section_generate.pl ./atsc_psip_section.pl
include ../../Make.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment