From 9c0601b088d25422ccdf59351189039079b1625a Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Sat, 7 Dec 2024 09:26:19 +0000 Subject: [PATCH] w_scan: fix gcc-15 build --- .../w_scan-0001-Fix-building-with-gcc15.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/addons/addon-depends/dvb-tools-depends/w_scan/patches/w_scan-0001-Fix-building-with-gcc15.patch 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