Fix libircclient fix to work with multiple versions

This commit is contained in:
Sven-Hendrik Haase
2013-01-11 15:44:03 +01:00
parent 7e9d89051a
commit 36d5e02436
+8
View File
@@ -33,7 +33,15 @@
#include <net/ircthread.h>
#include <net/socket_msg.h>
#include <libircclient/libircclient.h>
// 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 <libircclient/libirc_rfcnumeric.h>
#endif
#include <boost/algorithm/string/predicate.hpp>
#include <queue>
#include <sstream>