On 2017-04-16 at 13:34:00 +0200, Baruch Siach <[email protected]> wrote:
> Use libc provided arp definitions to avoid build failure with musl libc:
>
> In file included from pcap_io.h:19:0,
> from trafgen.c:59:
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_arp.h:113:8:
> error: redefinition of ‘struct arpreq’
> struct arpreq {
> ^
> In file included from
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/if_ether.h:111:0,
> from
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/ethernet.h:10,
> from trafgen.c:23:
> .../usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if_arp.h:99:8:
> note: originally defined here
> struct arpreq {
> ^
>
> Add a local definition of the ARPHRD_CAN macro that glibc does not provide.
>
> Signed-off-by: Baruch Siach <[email protected]>
Before I saw your patch, I already applied a simiar patch fixing up some
additional includes in commit b25a51fa5915 ("all: use <net/*> headers
instead of <linux/*> where possible"). Sorry about that!
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.