Description: patch needed due to -Werror=implicit-function-declaration
Index: dvbstream/mpegtools/ringbuffy.h
===================================================================
--- dvbstream.orig/mpegtools/ringbuffy.h	2024-03-16 00:20:42.785968313 +0100
+++ dvbstream/mpegtools/ringbuffy.h	2024-03-16 00:27:52.578768752 +0100
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <string.h>
 
 #ifdef __cplusplus
 extern "C" {
Index: dvbstream/ts_filter.c
===================================================================
--- dvbstream.orig/ts_filter.c	2024-03-16 00:20:42.785968313 +0100
+++ dvbstream/ts_filter.c	2024-03-16 00:28:49.406871198 +0100
@@ -34,7 +34,7 @@
     if (buf[0]!=0x47) {
       // TO DO: Re-sync.
       fprintf(stderr,"FATAL ERROR IN STREAM AT PACKET %d\n",i);
-      exit;
+      exit(1);
     }
     pid=(((buf[1] & 0x1f) << 8) | buf[2]);
     if (my_cc[pid]==0xff) my_cc[pid]=buf[3]&0x0f;
@@ -49,7 +49,7 @@
         j++;
       } else {
         fprintf(stderr,"FATAL ERROR - CAN NOT WRITE PACKET %d\n",i);
-        exit;
+        exit(1);
       }
       if (my_cc[pid]==0x0f) {
         my_cc[pid]=0;
Index: dvbstream/tune.c
===================================================================
--- dvbstream.orig/tune.c	2024-03-16 00:20:42.785968313 +0100
+++ dvbstream/tune.c	2024-03-16 00:31:24.731147399 +0100
@@ -250,7 +250,7 @@
         base = 0;
       }
 
-      fprintf(stderr,"tuning DVB-S to Freq: %u, Pol:%c Srate=%d, 22kHz tone=%s, LNB: %d, SLOF %d, LOF1: %d, LOF2: %d\n",
+      fprintf(stderr,"tuning DVB-S to Freq: %u, Pol:%c Srate=%d, 22kHz tone=%s, LNB: %d, SLOF %ld, LOF1: %ld, LOF2: %ld\n",
           feparams.frequency,pol,srate,tone == SEC_TONE_ON ? "on" : "off", diseqc, SLOF/1000UL, LOF1/1000UL, LOF2/1000UL);
       feparams.inversion=specInv;
       feparams.u.qpsk.symbol_rate=srate;
