File: 10_gcc-10_no-common.patch

package info (click to toggle)
netperf 2.7.0-0.1
  • links: PTS
  • area: non-free
  • in suites: bookworm, bullseye
  • size: 8,840 kB
  • sloc: ansic: 41,631; sh: 5,259; xml: 3,129; python: 2,376; awk: 68; makefile: 66
file content (26 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (2)
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
Description: 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.
Author: Tony Ambardar <itugrok@yahoo.com>
Origin: openwrt, https://github.com/openwrt/packages/pull/13058
--- a/src/nettest_omni.c
+++ b/src/nettest_omni.c
@@ -455,16 +455,6 @@
 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,