1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-14 11:23:57 +02:00
openwrt-packages/net/netperf/patches/010-gcc10_multiple_definition_fix.patch
Tony Ambardar c332d5fdf7 netperf: fix compilation with GCC10
GCC10 defaults to -fno-common, which breaks compilation when there are
multiple definitions of implicit "extern" variables. Remove the extra
definitions.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2020-08-09 00:02:48 -07:00

20 lines
587 B
Diff

--- a/src/nettest_omni.c
+++ b/src/nettest_omni.c
@@ -454,16 +454,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,