diff -Nru sendip-2.6/debian/changelog sendip-2.6/debian/changelog --- sendip-2.6/debian/changelog 2020-09-02 23:32:43.000000000 +0530 +++ sendip-2.6/debian/changelog 2026-05-23 10:52:14.000000000 +0530 @@ -1,3 +1,16 @@ +sendip (2.6-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with GCC 15 / C23 (Closes: #1097871): + - debian/patches/11-fix-ftbfs-gcc15-bool.patch: replace + 'typedef int bool;' in types.h with '#include ', + as recommended by the GCC 15 porting guide. + - debian/patches/12-fix-ftbfs-gcc15-old-style-defs.patch: convert + K&R-style definitions of exchange() and _getopt_initialize() in + gnugetopt.c to ANSI prototypes. + + -- Azeez Syed Sat, 23 May 2026 12:00:00 +0530 + sendip (2.6-1) unstable; urgency=low * New upstream release. diff -Nru sendip-2.6/debian/patches/11-fix-ftbfs-gcc15-bool.patch sendip-2.6/debian/patches/11-fix-ftbfs-gcc15-bool.patch --- sendip-2.6/debian/patches/11-fix-ftbfs-gcc15-bool.patch 1970-01-01 05:30:00.000000000 +0530 +++ sendip-2.6/debian/patches/11-fix-ftbfs-gcc15-bool.patch 2026-05-23 10:40:31.000000000 +0530 @@ -0,0 +1,24 @@ +Description: Fix FTBFS with GCC 15 / C23: replace typedef int bool + GCC 15 defaults to the C23 standard, in which 'bool' is a reserved + keyword and cannot be defined via typedef. The GCC 15 porting guide + recommends using , which provides bool/true/false in + C99/C11 and is harmlessly empty in C23. + . + The existing TRUE/FALSE macros expand to (0==0) and (!TRUE) — i.e. + the int values 1 and 0 — which remain valid bool values, so no other + code needs to change. +Author: Azeez Syed +Bug-Debian: https://bugs.debian.org/1097871 +Forwarded: no +Last-Update: 2026-05-23 +--- a/types.h ++++ b/types.h +@@ -8,7 +8,7 @@ + #define _SENDIP_TYPES_H + + /* Make sure we have bool */ +-typedef int bool; ++#include + #ifndef FALSE + #define TRUE (0==0) + #define FALSE (!TRUE) diff -Nru sendip-2.6/debian/patches/12-fix-ftbfs-gcc15-old-style-defs.patch sendip-2.6/debian/patches/12-fix-ftbfs-gcc15-old-style-defs.patch --- sendip-2.6/debian/patches/12-fix-ftbfs-gcc15-old-style-defs.patch 1970-01-01 05:30:00.000000000 +0530 +++ sendip-2.6/debian/patches/12-fix-ftbfs-gcc15-old-style-defs.patch 2026-05-23 10:46:58.000000000 +0530 @@ -0,0 +1,38 @@ +Description: Fix FTBFS with GCC 15: convert K&R definitions to ANSI + GCC 15 promotes -Wold-style-definition to an error by default in C23 + mode. The bundled GNU getopt in gnugetopt.c still uses two K&R-style + function definitions (exchange() and _getopt_initialize()) which now + fail to build under -Werror. + . + Convert both definitions to ANSI prototype form. The semantics are + unchanged; in fact each function already has a matching ANSI forward + declaration earlier in the same file, so the new definitions are + strictly more consistent with the rest of the unit. +Author: Azeez Syed +Bug-Debian: https://bugs.debian.org/1097871 +Forwarded: no +Last-Update: 2026-05-23 +--- a/gnugetopt.c ++++ b/gnugetopt.c +@@ -300,8 +300,7 @@ static void exchange (char **); + #endif + + static void +-exchange (argv) +- char **argv; ++exchange (char **argv) + { + int bottom = first_nonopt; + int middle = last_nonopt; +@@ -385,10 +384,7 @@ exchange (argv) + static const char *_getopt_initialize (int, char *const *, const char *); + #endif + static const char * +-_getopt_initialize (argc, argv, optstring) +- int argc; +- char *const *argv; +- const char *optstring; ++_getopt_initialize (int argc, char *const *argv, const char *optstring) + { + /* Start processing options with ARGV-element 1 (since ARGV-element 0 + is the program name); the sequence of previously skipped diff -Nru sendip-2.6/debian/patches/series sendip-2.6/debian/patches/series --- sendip-2.6/debian/patches/series 2020-09-02 15:07:43.000000000 +0530 +++ sendip-2.6/debian/patches/series 2026-05-23 10:42:14.000000000 +0530 @@ -8,3 +8,5 @@ 08-fix-rip-password.diff 09-reproducible-build.diff 10-add-destdir-to-makefile.diff +11-fix-ftbfs-gcc15-bool.patch +12-fix-ftbfs-gcc15-old-style-defs.patch