From ff9f9fc43162f3271e8335aae9b03175a0f2e7ee Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 4 Nov 2015 00:45:54 -0800 Subject: Don't include "file.h" if you don't need it. It ends up dragging in libwireshark headers, which programs not linking with libwireshark shouldn't do. In particular, including causes some functions that refer to libwireshark functions to be defined if the compiler doesn't handle "static inline" the way GCC does, and you end up requiring libwireshark even though you shouldn't require it. Move plurality() to wsutil/str_util.h, so that non-libwireshark code can get it without include epan/packet.h. Fix includes as necessary. Change-Id: Ie4819719da4c2b349f61445112aa419e99b977d3 Reviewed-on: https://code.wireshark.org/review/11545 Reviewed-by: Guy Harris --- epan/dissectors/packet-sua.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/dissectors/packet-sua.c') diff --git a/epan/dissectors/packet-sua.c b/epan/dissectors/packet-sua.c index 44f891c114..7b3dc0177f 100644 --- a/epan/dissectors/packet-sua.c +++ b/epan/dissectors/packet-sua.c @@ -35,6 +35,8 @@ #include #include +#include + #include "packet-mtp3.h" #include "packet-sccp.h" void proto_register_sua(void); -- cgit v1.2.3