From 8704d8c51b0e64d5fd55eeac48a03cd0c8f00abf Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sun, 13 Dec 2020 23:13:49 +0000 Subject: [PATCH] Fix build with IPV6 disabled Submitted by: Alexey Milevsky --- benchmarks/iperf/files/patch-src-SocketAddr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 benchmarks/iperf/files/patch-src-SocketAddr.c diff --git a/benchmarks/iperf/files/patch-src-SocketAddr.c b/benchmarks/iperf/files/patch-src-SocketAddr.c new file mode 100644 index 000000000000..c0c642033b55 --- /dev/null +++ b/benchmarks/iperf/files/patch-src-SocketAddr.c @@ -0,0 +1,10 @@ +--- src/SocketAddr.c.orig 2020-11-30 18:53:55 UTC ++++ src/SocketAddr.c +@@ -87,6 +87,7 @@ void SockAddr_remoteAddr (struct thread_Settings *inSe + inSettings->size_peer = sizeof(struct sockaddr_in); + } + #else ++ } + ((struct sockaddr*)&inSettings->peer)->sa_family = AF_INET; + inSettings->size_peer = sizeof(struct sockaddr_in); + #endif