Wireshark-bugs: [Wireshark-bugs] [Bug 11200] New: extcap/androiddump.c - Make it compile under F
Date: Fri, 15 May 2015 10:51:44 +0000
Bug ID 11200
Summary extcap/androiddump.c - Make it compile under FreeBSD
Product Wireshark
Version Git
Hardware x86
OS FreeBSD
Status UNCONFIRMED
Severity Normal
Priority Low
Component Extras
Assignee bugzilla-admin@wireshark.org
Reporter wireshark@mavetju.org

Build Information:
Current git version.
--
extcap/androiddump.c doesn't compile because it is missing the include for
netinet/in.h:

Earlier today I tried to figure out how this git stuff works to submit with
bugs, but without any luck. As such I do an old-fashioned patch, which
shouldn't be too difficult to decipher.

diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index 783880f..eac9c10 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -32,6 +32,10 @@
 #include <errno.h>
 #include <time.h>

+#ifdef HAVE_NETINET_IN_H
+#    include <netinet/in.h>
+#endif
+
 #ifdef HAVE_UNISTD_H
     #include <unistd.h>
 #endif


Please consider committing this. My eternal thanks to the person dealing with
this.


You are receiving this mail because:
  • You are watching all bug changes.