Files
nixpkgs/pkgs/by-name/rt/rtl_fm_streamer/use-stdbool.patch
2026-05-06 15:58:23 +07:00

19 lines
366 B
Diff

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
{