diff options
author | Xiang Xiao <xiaoxiang@xiaomi.com> | 2019-11-16 23:25:37 +0800 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2020-01-02 15:58:20 -0800 |
commit | 666040bd791ad838ab671e523f9347d0f4c3dbec (patch) | |
tree | b264d312b972018f9b760d79aeec0de5d28428f9 /src | |
parent | 0eb370de2e7b549e5c55a52c29bf903c781ee91c (diff) | |
download | iperf3-666040bd791ad838ab671e523f9347d0f4c3dbec.tar.gz |
fix hotn?, strcasecmp and timeval isn't defined error
by including arpa/inet.h, strings.h and sys/timer.h
Part of #935.
Change-Id: Ibac8d3a992457f2a7cc10f74b144e3ebe69976d8
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
(cherry picked from commit b9aa6cef43b338666a72bf6425fc88ed7602bce5)
Signed-off-by: Bruce A. Mah <bmah@es.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/dscp.c | 1 | ||||
-rw-r--r-- | src/iperf_tcp.c | 1 | ||||
-rw-r--r-- | src/iperf_udp.c | 1 | ||||
-rw-r--r-- | src/net.c | 1 | ||||
-rw-r--r-- | src/timer.h | 2 |
5 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,7 @@ #include <stdio.h> #include <string.h> +#include <strings.h> #include <stdlib.h> #include <inttypes.h> diff --git a/src/iperf_tcp.c b/src/iperf_tcp.c index 232aaa1..47252d0 100644 --- a/src/iperf_tcp.c +++ b/src/iperf_tcp.c @@ -29,6 +29,7 @@ #include <string.h> #include <errno.h> #include <unistd.h> +#include <arpa/inet.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> diff --git a/src/iperf_udp.c b/src/iperf_udp.c index 3d37dab..3623504 100644 --- a/src/iperf_udp.c +++ b/src/iperf_udp.c @@ -30,6 +30,7 @@ #include <errno.h> #include <unistd.h> #include <assert.h> +#include <arpa/inet.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> @@ -29,6 +29,7 @@ #include <stdio.h> #include <unistd.h> #include <errno.h> +#include <arpa/inet.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> diff --git a/src/timer.h b/src/timer.h index 301cdf3..58c3db8 100644 --- a/src/timer.h +++ b/src/timer.h @@ -31,6 +31,8 @@ #define __TIMER_H #include <time.h> +#include <sys/time.h> + #include "iperf_time.h" /* TimerClientData is an opaque value that tags along with a timer. The |