From 36d5e02436a07b0ae51fb77ccaa392e8024c52f9 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 11 Jan 2013 15:44:03 +0100 Subject: [PATCH] Fix libircclient fix to work with multiple versions --- src/net/common/ircthread.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/net/common/ircthread.cpp b/src/net/common/ircthread.cpp index b454c222..5b8cad24 100644 --- a/src/net/common/ircthread.cpp +++ b/src/net/common/ircthread.cpp @@ -33,7 +33,15 @@ #include #include #include + +// We need to do the following to handle different versions of libircclient. +// Sadly, libircclient doesn't have actual definitions for its versions in its headers. +// However, we can use a definition that appeared in the same version we need +// to check for. Hacky, but hey, it works. +#ifdef LIBIRC_OPTION_SSL_NO_VERIFY #include +#endif + #include #include #include