From fe933dee9988cfb22483eee410fdbb28d6448cc5 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 30 Mar 2015 22:11:18 +0100 Subject: [PATCH] Don't require socks_mosq.c in cpp library. --- lib/cpp/mosquittopp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cpp/mosquittopp.cpp b/lib/cpp/mosquittopp.cpp index 0a22b80f..03301812 100644 --- a/lib/cpp/mosquittopp.cpp +++ b/lib/cpp/mosquittopp.cpp @@ -281,7 +281,11 @@ void mosquittopp::user_data_set(void *userdata) int mosquittopp::socks5_set(const char *host, int port, const char *username, const char *password) { +#ifdef WITH_SOCKS return mosquitto_socks5_set(m_mosq, host, port, username, password); +#else + return MOSQ_ERR_NOT_SUPPORTED; +#endif }