1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Add upstream patch to fix 32 bit constant

- Bump PORTREVISION for package change

Obtained from:	33812baeb4/
Notified by:	Robert McMahon <rjmcmahon@rjmcmahon.com>
MFH:		2017Q3
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-08-18 15:57:22 +00:00
parent d4ae46c754
commit 2eb2556f28
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448243
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= iperf
PORTVERSION= 2.0.10
PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= SF/${PORTNAME}2

View File

@ -0,0 +1,11 @@
--- src/Client.cpp.orig 2017-08-09 03:54:14 UTC
+++ src/Client.cpp
@@ -680,7 +680,7 @@ void Client::Run( void ) {
// store datagram ID into buffer
if (isSeqNo64b(mSettings)) {
- mBuf_UDP->id = htonl((reportstruct->packetID & 0xFFFFFFFFFL));
+ mBuf_UDP->id = htonl((reportstruct->packetID & 0xFFFFFFFFL));
mBuf_UDP->id2 = htonl((((reportstruct->packetID & 0xFFFFFFFF00000000LL) >> 32) | 0x80000000L));
} else {
mBuf_UDP->id = htonl(((reportstruct->packetID & 0xFFFFFFFFL) | 0x80000000L));