From 3761ef378537f6a9e0424f7cbded7e7403ba425c Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 29 Dec 2016 20:16:53 +0200 Subject: 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 Petri-Dish: Michal Labedzki Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- extcap/androiddump.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extcap/androiddump.c') 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 #endif +#ifdef HAVE_SYS_TIME_H + #include +#endif + /* Configuration options */ /* #define ANDROIDDUMP_USE_LIBPCAP */ #define EXTCAP_ENCAP_BLUETOOTH_H4_WITH_PHDR 1 -- cgit v1.2.1