TCPDUMP and PCAP fixes to defines.

This commit is contained in:
Chris Johns
2015-06-16 13:19:32 +10:00
parent 5e02888822
commit 06cd120921
3 changed files with 266 additions and 258 deletions

View File

@@ -2048,14 +2048,21 @@ def user_space(mm):
#
def contrib_libpcap(mm):
mod = builder.Module('contrib_libpcap')
cflags = ['-DINET6',
cflags = ['-D__FreeBSD__=1',
'-DBSD=1',
'-DINET6',
'-D_U_=__attribute__((unused))',
'-DHAVE_LIMITS_H=1',
'-DHAVE_INTTYPES=1',
'-DHAVE_STDINT=1',
'-DHAVE_STRERROR=1',
'-DHAVE_STRLCPY=1',
'-DHAVE_SNPRINTF=1',
'-DHAVE_VSNPRINTF=1']
'-DHAVE_VSNPRINTF=1',
'-DHAVE_SOCKADDR_SA_LEN=1',
#'-DHAVE_ZEROCOPY_BPF=1',
'-DHAVE_NET_IF_MEDIA_H=1',
'-DHAVE_SYS_IOCCOM_H=1']
mod.addUserSpaceHeaderFiles(
[
'contrib/libpcap/arcnet.h',
@@ -2350,7 +2357,8 @@ def usr_sbin_tcpdump(mm):
'contrib/tcpdump/tcpdump.c',
'contrib/tcpdump/util.c',
],
mm.generator['source'](['-DINET6',
mm.generator['source'](['-D__FreeBSD__=1',
'-DINET6',
'-D_U_=__attribute__((unused))',
'-DHAVE_CONFIG_H=1',
'-DHAVE_NET_PFVAR_H=1'],