From 7599706808022d66f1d9f7afd46fe24f798a06d7 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 28 Mar 2017 12:30:26 +0200 Subject: [PATCH] One more try to fix mqtt.c --- src/apps/mqtt/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mqtt/mqtt.c b/src/apps/mqtt/mqtt.c index 0a078035..879583de 100644 --- a/src/apps/mqtt/mqtt.c +++ b/src/apps/mqtt/mqtt.c @@ -1285,7 +1285,7 @@ mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ip_addr, u16_t port, if (client->conn == NULL) { return ERR_MEM; } -#if LWIP_ALTCP_TLS +#if LWIP_ALTCP && LWIP_ALTCP_TLS if (client_info->tls_config) { struct altcp_pcb *pcb_tls = altcp_tls_new(client_info->tls_config, client->conn); if (pcb_tls == NULL) {