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 /examples | |
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 'examples')
-rw-r--r-- | examples/mic.c | 2 | ||||
-rw-r--r-- | examples/mis.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/mic.c b/examples/mic.c index 7d1d9d5..73dc143 100644 --- a/examples/mic.c +++ b/examples/mic.c @@ -3,7 +3,9 @@ #include <unistd.h> #include <string.h> #include <sysexits.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <iperf_api.h> diff --git a/examples/mis.c b/examples/mis.c index 9e72197..3ec12a1 100644 --- a/examples/mis.c +++ b/examples/mis.c @@ -3,7 +3,9 @@ #include <unistd.h> #include <string.h> #include <sysexits.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <iperf_api.h> |