[Buildroot] [PATCH 1/1] package/netsniff-ng: fix compilation with gcc-15
Bernd Kuhls
bernd at kuhls.net
Fri Dec 5 19:58:50 UTC 2025
Build error was not yet recorded by autobuilders.
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
...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?= <jskarvad at redhat.com>
+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 <jskarvad at redhat.com>
+
+Upstream: https://github.com/netsniff-ng/netsniff-ng/commit/1af7ae33e3e8178ab5c649c3a52838d4375c4228
+
+Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
+---
+ 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);
--
2.47.3
More information about the buildroot
mailing list