diff options
author | Bruce A. Mah <bmah@es.net> | 2014-05-19 10:15:36 -0700 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2014-05-19 10:15:36 -0700 |
commit | 426221a327ce8d37d4e6065d716f01422da4d16b (patch) | |
tree | a47bd4e04a02c033339a1436ad737d72aad2839d /src/main.c | |
parent | df1a7a2194f9b9b44fc62c3f3401a94a79d48d9d (diff) | |
download | iperf3-426221a327ce8d37d4e6065d716f01422da4d16b.tar.gz |
Check HAVE_STDINT_H before trying to include <stdint.h>.
Partial fix for compilation on some Solaris versions. Fixes #175.
Submitted by: @marksolaris
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,13 +15,17 @@ #include <errno.h> #include <signal.h> #include <unistd.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <netinet/tcp.h> #include "iperf.h" |