1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Tony Ambardar <itugrok@yahoo.com>
Date: Tue, 9 Sep 2025 13:32:13 +0200
Subject: netperf: fix compilation with GCC10
Origin: openwrt, https://github.com/openwrt/packages/pull/13058
GCC10 defaults to -fno-common,
which breaks compilation when
there are multiple definitions of implicit "extern" variables.
Remove the extra definitions.
---
src/nettest_omni.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/nettest_omni.c b/src/nettest_omni.c
index 5d63f02..76add0e 100644
--- a/src/nettest_omni.c
+++ b/src/nettest_omni.c
@@ -483,16 +483,6 @@ static int remote_cpu_method;
static int client_port_min = 5000;
static int client_port_max = 65535;
- /* different options for the sockets */
-
-int
- loc_nodelay, /* don't/do use NODELAY locally */
- rem_nodelay, /* don't/do use NODELAY remotely */
- loc_sndavoid, /* avoid send copies locally */
- loc_rcvavoid, /* avoid recv copies locally */
- rem_sndavoid, /* avoid send copies remotely */
- rem_rcvavoid; /* avoid recv_copies remotely */
-
extern int
loc_tcpcork,
rem_tcpcork,
|