Package: tcpdump
Version: 4.1.1-1
Severity: important
Tags: patch
Usertags: Hurd

Attached is a small patch to enable successful build of tcpdump on
GNU/Hurd. Yes, I know that this package gives the following output:

tcpdump -i eth0
tcpdump: live packet capture not supported on this system

coreesponding for dhcpdump:
dhcpdump -i eth0
dhcpdump: pcap_open_live(): live packet capture not supported on this
system

due to missing features in libpcap. Anyway, when they are implemented
everything is prepared (and the number of lagging packages for GNU/Hurd
is reduced).
--- tcpdump-4.1.1/tcpdump-stdinc.h	2010-03-12 02:56:44.000000000 +0100
+++ tcpdump-4.1.1.new/tcpdump-stdinc.h	2011-04-11 20:21:34.000000000 +0200
@@ -117,7 +117,11 @@
 #ifdef HAVE_SYS_BITYPES_H
 #include <sys/bitypes.h>
 #endif
+#ifndef __GNU__
 #include <sys/param.h>
+#else
+#include <rpc/types.h>
+#endif
 #include <sys/types.h>			/* concession to AIX */
 #include <sys/time.h>
 #include <sys/socket.h>

Reply via email to