aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2014-05-19 10:15:36 -0700
committerBruce A. Mah <bmah@es.net>2014-05-19 10:15:36 -0700
commit426221a327ce8d37d4e6065d716f01422da4d16b (patch)
treea47bd4e04a02c033339a1436ad737d72aad2839d /examples
parentdf1a7a2194f9b9b44fc62c3f3401a94a79d48d9d (diff)
downloadiperf3-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.c2
-rw-r--r--examples/mis.c2
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>