From dcc447ec4ad26779eebc1899e4d9be5ee19d8c26 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 31 Jul 2020 22:11:16 -0700 Subject: [PATCH] user agent zlib fix --- ixwebsocket/IXUserAgent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ixwebsocket/IXUserAgent.cpp b/ixwebsocket/IXUserAgent.cpp index 85fb9992..89dcb0f3 100644 --- a/ixwebsocket/IXUserAgent.cpp +++ b/ixwebsocket/IXUserAgent.cpp @@ -8,7 +8,9 @@ #include "IXWebSocketVersion.h" #include +#ifdef IXWEBSOCKET_USE_ZLIB #include +#endif // Platform name #if defined(_WIN32) @@ -77,8 +79,10 @@ namespace ix ss << " nossl"; #endif +#ifdef IXWEBSOCKET_USE_ZLIB // Zlib version ss << " zlib " << ZLIB_VERSION; +#endif return ss.str(); }