From f025f083150b68744d995d755034bb03c9bc269a Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 4 Oct 2019 17:06:35 -0700 Subject: [PATCH] Sniffer touches for Windows. --- src/sniffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sniffer.c b/src/sniffer.c index 1258ec350..a358f5f2e 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -34,6 +34,8 @@ #ifndef _WIN32 #include +#else + #include #endif #ifdef _WIN32 @@ -1177,7 +1179,7 @@ static void SetError(int idx, char* error, SnifferSession* session, int fatal) /* Compare IpAddrInfo structs */ -static inline int MatchAddr(IpAddrInfo l, IpAddrInfo r) +static WC_INLINE int MatchAddr(IpAddrInfo l, IpAddrInfo r) { if (l.version == r.version) { if (l.version == IPV4)