diff options
| author | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-12 16:40:54 -0700 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-12 16:42:04 -0700 |
| commit | 9583c6c401bb5bd76197ec73667de1a302b335a9 (patch) | |
| tree | 4587029c5aa67f58ac3a46544a0ba0fa94c50737 | |
| parent | 90609e97512a7711ffd84c1b59c7e79745191c7a (diff) | |
| download | meta-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.patch | 25 | ||||
| -rw-r--r-- | meta-networking/recipes-support/netperf/netperf_git.bb | 1 |
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 @@ | |||
| 1 | From ea9ce6ae6154660f2a1dc7a73aedf906cc935a72 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <khem.raj@oss.qualcomm.com> | ||
| 3 | Date: Sun, 12 Apr 2026 16:38:28 -0700 | ||
| 4 | Subject: [PATCH] cleanup: modernize sendfile_tcp_stream signature from K&R to ANSI C style | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-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 | |||
| 12 | diff --git a/src/nettest_bsd.c b/src/nettest_bsd.c | ||
| 13 | index 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 | ||
| 23 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" | 24 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" |
