summaryrefslogtreecommitdiffstats
path: root/libbsd.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-06-16 13:19:32 +1000
committerChris Johns <chrisj@rtems.org>2015-06-16 13:19:32 +1000
commit06cd120921afc47e200106c0ad4b37de57153795 (patch)
tree0664233d9e5f98a4784236d518e0b5bae43b8554 /libbsd.py
parentAdd the TCPDUMP command. (diff)
downloadrtems-libbsd-06cd120921afc47e200106c0ad4b37de57153795.tar.bz2
TCPDUMP and PCAP fixes to defines.
Diffstat (limited to 'libbsd.py')
-rwxr-xr-xlibbsd.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/libbsd.py b/libbsd.py
index 56d3a7aa..ebbdc98b 100755
--- a/libbsd.py
+++ b/libbsd.py
@@ -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'],