aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFredrik Fornwall <fredrik@fornwall.net>2014-06-16 08:59:08 +0200
committerFredrik Fornwall <fredrik@fornwall.net>2014-06-16 08:59:08 +0200
commit1ceacc13626e81c8a87659748b4692ecb9ba986a (patch)
treeccf5621669e2fa1b60f721c02b66fa0dcc6dcdeb /src
parent0f6a1e04978e8263715b16b6fe3f1222bd7e1093 (diff)
downloadiperf3-1ceacc13626e81c8a87659748b4692ecb9ba986a.tar.gz
Include <sys/select.h> for select(2)
The sys/select.h include is the correct one and fixes building on Android. See e.g. http://pubs.opengroup.org/onlinepubs/009604599/functions/pselect.html
Diffstat (limited to 'src')
-rw-r--r--src/iperf.h1
-rw-r--r--src/iperf_util.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/iperf.h b/src/iperf.h
index ddfe808..9f3f8f2 100644
--- a/src/iperf.h
+++ b/src/iperf.h
@@ -17,6 +17,7 @@
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
+#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
diff --git a/src/iperf_util.h b/src/iperf_util.h
index bf8efd9..fe58e8c 100644
--- a/src/iperf_util.h
+++ b/src/iperf_util.h
@@ -11,6 +11,7 @@
#define __IPERF_UTIL_H
#include "cjson.h"
+#include <sys/select.h>
void make_cookie(char *);