From 18223bc071eec1f87cc267fff37950a075376a67 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 5 Dec 2025 20:58:50 +0100 Subject: [PATCH] package/netsniff-ng: fix compilation with >= gcc-15 Build error was not yet recorded by autobuilders. Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni (cherry picked from commit eed531873019f695437f1252c16a8e5b5393835f) Signed-off-by: Thomas Perale --- ...sezahn-fixed-compilation-with-gcc-15.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/netsniff-ng/0001-mausezahn-fixed-compilation-with-gcc-15.patch diff --git a/package/netsniff-ng/0001-mausezahn-fixed-compilation-with-gcc-15.patch b/package/netsniff-ng/0001-mausezahn-fixed-compilation-with-gcc-15.patch new file mode 100644 index 0000000000..5eaaa91f10 --- /dev/null +++ b/package/netsniff-ng/0001-mausezahn-fixed-compilation-with-gcc-15.patch @@ -0,0 +1,39 @@ +From 1af7ae33e3e8178ab5c649c3a52838d4375c4228 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= +Date: Tue, 10 Jun 2025 14:47:54 +0200 +Subject: [PATCH] mausezahn: fixed compilation with gcc-15 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +gcc-15 by default uses C23 standard which is more strict on forward +declarations. + +Original report: https://bugzilla.redhat.com/show_bug.cgi?id=2340924 + +Signed-off-by: Jaroslav Škarvada + +Upstream: https://github.com/netsniff-ng/netsniff-ng/commit/1af7ae33e3e8178ab5c649c3a52838d4375c4228 + +Signed-off-by: Bernd Kuhls +--- + staging/mops.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/staging/mops.h b/staging/mops.h +index cf19f098..ae3769a7 100644 +--- a/staging/mops.h ++++ b/staging/mops.h +@@ -940,9 +940,9 @@ int mops_direct(char* dev, int mops_type, char* argstring); + + + struct automops * automops_init(void); +-struct automops * automops_alloc_protocol(); +-struct automops * automops_delete_protocol(); +-struct automops * automops_search_protocol(); ++struct automops * automops_alloc_protocol(struct automops *cur); ++struct automops * automops_delete_protocol(struct automops *cur); ++struct automops * automops_search_protocol(struct automops *list, char *name); + int automops_dump_all (struct automops* list); + void automops_set_defaults(struct automops * cur); + struct fields * automops_add_field (struct automops *amp);