mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

Don't include non-existing headers when installed without libpcap #382

Closed laudrup closed 4 years ago

laudrup commented 4 years ago

If libpcap support has been disabled (LIBTINS_ENABLE_PCAP=OFF) then the headers requiring that library will not be installed, but they will still be included from the main tins.h convenience header.

This fixes that by sorrounding the includes with an #ifdef the same way it has been done for DOT11 support.

mfontanini commented 4 years ago

Thanks!