On Tue, Jun 17, 2003 at 07:54:00PM +0400, Evgeniy Polyakov wrote:
> problem description:
> when compiling C++ code with libpcap following error occures:
> 
> In file included from accumulator.cpp:34:
> /usr/include/net/bpf.h:369: previous declaration of `u_int
>    bpf_filter(bpf_insn*, u_char*, unsigned int, unsigned int)' with C++
> linkage/usr/include/pcap.h:169: conflicts with new declaration with C
> linkage/usr/include/net/bpf.h:368: previous declaration of `int
>    bpf_validate(bpf_insn*, int)' with C++ linkage
> /usr/include/pcap.h:170: conflicts with new declaration with C linkage
> 
> Attached patch fixes the problem.

The current CVS version of libpcap (which doesn't use <net/bpf.h> for
that purpose any more - it uses it only to define BPF ioctls and the
like) has the C++-protection stuff in it already.

> Please cc: me in your answers since i'm not a subscriber.

Note that it's "[EMAIL PROTECTED]", not
"[EMAIL PROTECTED]".

Note also that 99 44/100% of mail to [EMAIL PROTECTED] consists of
spam, so mail to that list is likely either not to be looked at
immediately or to be inadvertently deleted when purging spam;
bugs/patches/etc. should be submitted to SourceForge (which sends
notification mail to [EMAIL PROTECTED], but also records the bug in
the SourceForge bug database).
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]

Reply via email to