From 8da102fb48d7ec4f7d33257dccd2baaab60d4fd4 Mon Sep 17 00:00:00 2001 From: Kasper Laudrup Date: Fri, 20 Dec 2019 14:18:07 +0100 Subject: [PATCH] Don't include non-existing headers when installed without libpcap 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. --- include/tins/tins.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/tins/tins.h b/include/tins/tins.h index 058941d..d3e1038 100644 --- a/include/tins/tins.h +++ b/include/tins/tins.h @@ -49,16 +49,19 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include +#if defined(TINS_HAVE_PCAP) +#include +#include +#include #include +#endif #include #include #include @@ -75,7 +78,7 @@ #include #include #include -#include + #include #endif // TINS_TINS_H