From bda350d8fdab87c4cb54358abb44a0efa6cc5968 Mon Sep 17 00:00:00 2001 From: John Thacker Date: Tue, 6 Jun 2023 21:25:06 -0400 Subject: Don't have every dissector include wtap.h The header for frame_data can forward declare an incomplete type for wtap_rec, since it only takes a pointer to it. This prevents every dissector from automatically including wiretap/wtap.h Add wiretap/wtap.h to some dissectors that need it. Remove it from some other dissectors that had the explicit include but don't actually need it. A few other dissectors actually need wsutil/inet_addr.h but were getting that via wtap.h - include what they actually need. This reduces the number of files that are recompiled when wiretap/wtap.h is touched from ~2500 to ~800. Note that most of the dissectors that still include wiretap/wtap.h really only need to use a WTAP_ENCAP_ value, and most of the rest just need a pseudoheader. Those could be moved into another wiretap include to further reduce recompilation. Related to #19127 --- epan/dissectors/packet-ieee80211-prism.c | 1 - 1 file changed, 1 deletion(-) (limited to 'epan/dissectors/packet-ieee80211-prism.c') diff --git a/epan/dissectors/packet-ieee80211-prism.c b/epan/dissectors/packet-ieee80211-prism.c index b8eec55f94..99a77df0f4 100644 --- a/epan/dissectors/packet-ieee80211-prism.c +++ b/epan/dissectors/packet-ieee80211-prism.c @@ -17,7 +17,6 @@ #include #include -#include #include #include #include "packet-ieee80211.h" -- cgit v1.2.3