!11 fix multiple defination of variable
From: @shdluan Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
0edd49056e
20
netperf-fix-multiple-definition.patch
Normal file
20
netperf-fix-multiple-definition.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./src/nettest_omni.c.bak 2021-08-03 17:12:46.083392014 +0800
|
||||
+++ ./src/nettest_omni.c 2021-08-03 17:13:38.299856016 +0800
|
||||
@@ -456,15 +456,13 @@
|
||||
|
||||
/* different options for the sockets */
|
||||
|
||||
-int
|
||||
+extern 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
|
||||
+ rem_rcvavoid, /* avoid recv_copies remotely */
|
||||
loc_tcpcork,
|
||||
rem_tcpcork,
|
||||
local_connected,
|
||||
10
netperf.spec
10
netperf.spec
@ -2,12 +2,14 @@
|
||||
|
||||
Name: netperf
|
||||
Version: 2.7.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A Performance benchmark testing tool fro TCP/UDP
|
||||
License: MIT
|
||||
URL: http://github.com/HewlettPackard/netperf
|
||||
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
|
||||
|
||||
Patch1: netperf-fix-multiple-definition.patch
|
||||
|
||||
BuildRequires: gcc texinfo texinfo-tex
|
||||
|
||||
%description
|
||||
@ -17,9 +19,10 @@ netperf is a collection of many different network performance benchmarking tool
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
|
||||
%build
|
||||
%configure
|
||||
%configure
|
||||
%{__make} %{_smp_mflags}
|
||||
|
||||
%install
|
||||
@ -50,6 +53,9 @@ netperf is a collection of many different network performance benchmarking tool
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 4 2021 shdluan <shdluan@163.com> - 2.7.0-5
|
||||
- fix multiple defination of variable
|
||||
|
||||
* Thu Jun 03 2021 zhaoyao <zhaoyao32@huawei.com> - 2.7.0.-4
|
||||
- fixs failed: gcc command not found.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user