#
# Attempt to catch weird bug with missing headers for libpcap
#
# Old header is at /usr/include/net/bpf.h
# we need /usr/include/pcap-bpf.h instead
#
# Require libpcap 0.8.1 or higher...
#

# BEGIN EVIL HACK
VER_PCAP=`lvu installed libpcap|tr -d .|sed -e 's/^0*//g'`

if [[ $VER_PCAP -lt 81 ]]; then
  # Well crap, old version...gotta upgrade
  lin -c libpcap
fi
# END EVIL HACK
default_pre_build
