rtl_fm_streamer: fix build with gcc 15 (#517229)

This commit is contained in:
yaya
2026-05-06 09:47:48 +00:00
committed by GitHub
2 changed files with 22 additions and 0 deletions
@@ -30,6 +30,10 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
'';
patches = [
./use-stdbool.patch
];
nativeBuildInputs = [
cmake
pkg-config
@@ -0,0 +1,18 @@
Drop the hand-rolled bool enum: `bool`, `true`, and `false` are reserved
keywords in C23 (the default since GCC 15), so the typedef no longer compiles.
--- a/src/rtl_fm_streamer.c
+++ b/src/rtl_fm_streamer.c
@@ -100,11 +100,7 @@
#define DEFAULT_PORT_NUMBER "2346"
-typedef enum
-{
- false = 0,
- true
-}bool;
+#include <stdbool.h>
struct dongle_state
{