diff mbox series

[meta-networking] netperf: Fix build with std=gnu23

Message ID 20260412234147.3378566-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-networking] netperf: Fix build with std=gnu23 | expand

Commit Message

Khem Raj April 12, 2026, 11:41 p.m. UTC
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...e-sendfile_tcp_stream-signature-from.patch | 25 +++++++++++++++++++
 .../recipes-support/netperf/netperf_git.bb    |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-networking/recipes-support/netperf/files/0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/netperf/files/0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch b/meta-networking/recipes-support/netperf/files/0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch
new file mode 100644
index 0000000000..4e8731fb25
--- /dev/null
+++ b/meta-networking/recipes-support/netperf/files/0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch
@@ -0,0 +1,25 @@ 
+From ea9ce6ae6154660f2a1dc7a73aedf906cc935a72 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Sun, 12 Apr 2026 16:38:28 -0700
+Subject: [PATCH] cleanup: modernize sendfile_tcp_stream signature from K&R to ANSI C style
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ src/nettest_bsd.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/nettest_bsd.c b/src/nettest_bsd.c
+index 36f5810..e7feb83 100644
+--- a/src/nettest_bsd.c
++++ b/src/nettest_bsd.c
+@@ -4270,8 +4270,7 @@ Size (bytes)\n\
+    all it knows, nothig is different. */
+
+ void
+-sendfile_tcp_stream(remote_host)
+-     char	remote_host[];
++sendfile_tcp_stream (char	remote_host[])
+ {
+
+   char *tput_title = "\
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb
index d5a717b0f6..8f49a7596b 100644
--- a/meta-networking/recipes-support/netperf/netperf_git.bb
+++ b/meta-networking/recipes-support/netperf/netperf_git.bb
@@ -18,6 +18,7 @@  SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht
            file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \
            file://0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch \
            file://0001-Fix-multiple-definitions-with-enable-intervals.patch \
+           file://0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch \
            "

 SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"