diff options
author | f1rebird <f1rebird@users.noreply.github.com> | 2017-03-22 20:00:08 +0100 |
---|---|---|
committer | Bruce A. Mah <bmah@kitchenlab.org> | 2017-03-22 12:00:08 -0700 |
commit | a8ee9c650b3efe4453a69ceebe4d71c3cb4bcadf (patch) | |
tree | b4788868728221ccc9fd79d95014381358a01dc5 /src/iperf.h | |
parent | b3828fed23c419da395eeb468acecd7eddd4c221 (diff) | |
download | iperf3-a8ee9c650b3efe4453a69ceebe4d71c3cb4bcadf.tar.gz |
Fix header includes and build failures on musl (#518)
* Include stdint.h in files where its types are used
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
* Fix type of len parameter passed to getsockopt
getsockopt expects socklen_t instead of int as its fifth argument
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
* Remove unnecassary includes of netinet/tcp.h
also cleanup the second include of stdint.h in main.c
This commit fixes #331 and is a replacement for #344.
Signed-off-by: Moritz Kick <f1rebird@users.noreply.github.com>
Diffstat (limited to 'src/iperf.h')
-rwxr-xr-x | src/iperf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iperf.h b/src/iperf.h index 37695a2..4878dd5 100755 --- a/src/iperf.h +++ b/src/iperf.h @@ -36,6 +36,7 @@ #endif #include <sys/select.h> #include <sys/socket.h> +#define _GNU_SOURCE #include <netinet/tcp.h> #if defined(HAVE_CPUSET_SETAFFINITY) |