1 From 1ab938e762ee6ebd3211c22ef25a7575e37791c4 Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Thu, 29 Dec 2016 20:16:53 +0200
4 Subject: [PATCH] androiddump: add missing sys/time.h header
6 struct timeval requires sys/time.h. Fixes the following musl libc build error:
8 androiddump.c: In function 'useSndTimeout':
9 androiddump.c:262:18: error: variable 'socket_timeout' has initializer but incomplete type
10 const struct timeval socket_timeout = {
13 Change-Id: I52e204f32a012aabea2e54877e564576c072fe08
14 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
16 Upstream status: https://code.wireshark.org/review/19460
18 extcap/androiddump.c | 1 +
19 1 file changed, 1 insertion(+)
21 diff --git a/extcap/androiddump.c b/extcap/androiddump.c
22 index 8287c4bb1a76..fab7c10e05cc 100644
23 --- a/extcap/androiddump.c
24 +++ b/extcap/androiddump.c
29 +#include <sys/time.h>
31 #ifdef HAVE_NETINET_IN_H
32 # include <netinet/in.h>