summaryrefslogtreecommitdiff
path: root/extcap
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2016-12-29 20:16:53 +0200
committerRoland Knall <rknall@gmail.com>2016-12-30 09:02:47 +0000
commit3761ef378537f6a9e0424f7cbded7e7403ba425c (patch)
treef581a1ef5b627917b8f6e4dc5166e4a327f65bcb /extcap
parent931253800adff149f34cc6d2ed082801edc2d3c8 (diff)
downloadwireshark-3761ef378537f6a9e0424f7cbded7e7403ba425c.tar.gz
androiddump: add missing sys/time.h header
struct timeval requires sys/time.h. Fixes the following musl libc build error: androiddump.c: In function 'useSndTimeout': androiddump.c:262:18: error: variable 'socket_timeout' has initializer but incomplete type const struct timeval socket_timeout = { ^ Change-Id: I52e204f32a012aabea2e54877e564576c072fe08 Reviewed-on: https://code.wireshark.org/review/19460 Reviewed-by: Michal Labedzki <michal.tomasz.labedzki@gmail.com> Petri-Dish: Michal Labedzki <michal.tomasz.labedzki@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/androiddump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index e38d4b3f0b..a7649c3634 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -49,6 +49,10 @@
#include <arpa/inet.h>
#endif
+#ifdef HAVE_SYS_TIME_H
+ #include <sys/time.h>
+#endif
+
/* Configuration options */
/* #define ANDROIDDUMP_USE_LIBPCAP */
#define EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 1