aboutsummaryrefslogtreecommitdiff
path: root/src/iperf.h
diff options
context:
space:
mode:
authorf1rebird <f1rebird@users.noreply.github.com>2017-03-22 20:00:08 +0100
committerBruce A. Mah <bmah@kitchenlab.org>2017-03-22 12:00:08 -0700
commita8ee9c650b3efe4453a69ceebe4d71c3cb4bcadf (patch)
treeb4788868728221ccc9fd79d95014381358a01dc5 /src/iperf.h
parentb3828fed23c419da395eeb468acecd7eddd4c221 (diff)
downloadiperf3-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-xsrc/iperf.h1
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)