Guy, Thanks for leaving interface.h to be included. You're right. But before including interface.h, we need to include config.h.
Patch attached. From: Guy Harris <[EMAIL PROTECTED]> Subject: Re: [tcpdump-workers] tcpdump CVS won't compile... Date: Tue, 2 Oct 2001 00:09:19 -0700 > I checked in my own change to get rid of most of the #includes, and the > CRs, before I saw your mail; I've subsequently checked in a change that > removes most of the ones I hadn't removed but you had removed, but I > left the #include of "interface.h" in, so that "dump_and_trunc()" is > declared before it's defined (so that if the definition is changed and > no longer matches the declaration, it won't compile, obliging you to > change the declaration - and thus obliging you to change the places > where it's used). =--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--= +----+----+ |.. .| | Motonori Shindo |_~__| | | .. |~~_~| Sr. Systems Engineer | . | | CoSine Communications Inc. +----+----+ C o S i n e e-mail: [EMAIL PROTECTED] Communications =--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
RCS file: /tcpdump/master/tcpdump/pcap-dump-trunc.c,v retrieving revision 1.4 diff -u -r1.4 pcap-dump-trunc.c --- pcap-dump-trunc.c 2001/10/02 08:45:30 1.4 +++ pcap-dump-trunc.c 2001/10/02 10:02:36 @@ -24,6 +24,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdio.h> #include <pcap.h> #include <unistd.h>
