include it in these files, as they either include "pcap-int.h", which includes <pcap.h>, or they include <pcap.h> directly.
from NetBSD/OpenBSD src/lib/libpcap. use freeifaddrs() if exists.