0002-androiddump-add-missing-sys-time.h-header.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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
  5. struct timeval requires sys/time.h. Fixes the following musl libc build error:
  6. androiddump.c: In function 'useSndTimeout':
  7. androiddump.c:262:18: error: variable 'socket_timeout' has initializer but incomplete type
  8. const struct timeval socket_timeout = {
  9. ^
  10. Change-Id: I52e204f32a012aabea2e54877e564576c072fe08
  11. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  12. ---
  13. Upstream status: https://code.wireshark.org/review/19460
  14. ---
  15. extcap/androiddump.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/extcap/androiddump.c b/extcap/androiddump.c
  18. index 8287c4bb1a76..fab7c10e05cc 100644
  19. --- a/extcap/androiddump.c
  20. +++ b/extcap/androiddump.c
  21. @@ -30,6 +30,7 @@
  22. #include <string.h>
  23. #include <errno.h>
  24. #include <time.h>
  25. +#include <sys/time.h>
  26. #ifdef HAVE_NETINET_IN_H
  27. # include <netinet/in.h>
  28. --
  29. 2.11.0