diff --git a/packages/addons/addon-depends/dvb-tools-depends/w_scan/patches/w_scan-0001-Fix-building-with-gcc15.patch b/packages/addons/addon-depends/dvb-tools-depends/w_scan/patches/w_scan-0001-Fix-building-with-gcc15.patch new file mode 100644 index 0000000000..3a438198a7 --- /dev/null +++ b/packages/addons/addon-depends/dvb-tools-depends/w_scan/patches/w_scan-0001-Fix-building-with-gcc15.patch @@ -0,0 +1,30 @@ +--- a/tools.h 2017-01-07 09:06:17.000000000 +0000 ++++ b/tools.h 2024-12-07 09:14:24.126672083 +0000 +@@ -32,10 +32,12 @@ + /******************************************************************************* + /* common typedefs && logging. + ******************************************************************************/ +-#ifndef bool +- typedef int bool; +- #define false 0 +- #define true !(false) ++#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L ++ #ifndef bool ++ typedef int bool; ++ #define false 0 ++ #define true !(false) ++ #endif + #endif + + #define min(a,b) (b