summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-04-12 16:40:54 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-04-12 16:42:04 -0700
commit9583c6c401bb5bd76197ec73667de1a302b335a9 (patch)
tree4587029c5aa67f58ac3a46544a0ba0fa94c50737
parent90609e97512a7711ffd84c1b59c7e79745191c7a (diff)
downloadmeta-openembedded-9583c6c401bb5bd76197ec73667de1a302b335a9.tar.gz
netperf: Fix build with std=gnu23
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-networking/recipes-support/netperf/files/0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch25
-rw-r--r--meta-networking/recipes-support/netperf/netperf_git.bb1
2 files changed, 26 insertions, 0 deletions
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 @@
1From ea9ce6ae6154660f2a1dc7a73aedf906cc935a72 Mon Sep 17 00:00:00 2001
2From: Khem Raj <khem.raj@oss.qualcomm.com>
3Date: Sun, 12 Apr 2026 16:38:28 -0700
4Subject: [PATCH] cleanup: modernize sendfile_tcp_stream signature from K&R to ANSI C style
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
8---
9 src/nettest_bsd.c | 3 +--
10 1 file changed, 1 insertion(+), 2 deletions(-)
11
12diff --git a/src/nettest_bsd.c b/src/nettest_bsd.c
13index 36f5810..e7feb83 100644
14--- a/src/nettest_bsd.c
15+++ b/src/nettest_bsd.c
16@@ -4270,8 +4270,7 @@ Size (bytes)\n\
17 all it knows, nothig is different. */
18
19 void
20-sendfile_tcp_stream(remote_host)
21- char remote_host[];
22+sendfile_tcp_stream (char remote_host[])
23 {
24
25 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
18 file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \ 18 file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \
19 file://0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch \ 19 file://0001-Fix-too-many-arguments-error-occurring-in-gcc-15.patch \
20 file://0001-Fix-multiple-definitions-with-enable-intervals.patch \ 20 file://0001-Fix-multiple-definitions-with-enable-intervals.patch \
21 file://0001-cleanup-modernize-sendfile_tcp_stream-signature-from.patch \
21 " 22 "
22 23
23SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" 24SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"