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 fil
Hi netsniff-ng list,
On Sun, Apr 16, 2017 at 08:22:21AM +0300, Baruch Siach 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/l
Use $PKG_CONFIG to determine the linker flags for libnetfilter_conntrack. This
fixes static link failure like the following:
LDflowtop
.../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o):
In function `nfct_open_nfnl':
main.c:(.text+0x52): undefined
ino_t and pid_t require stat.h and types.h, respectively. Fixes the following
build failure with musl libc:
In file included from cpp.c:7:0:
proc.h:11:31: error: unknown type name ‘ino_t’
extern int proc_find_by_inode(ino_t ino, char *cmdline, size_t len, pid_t
*pid);
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 fil