From 0f3be6128b2cf054f0f57ff7daed0c6537363f14 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 21 Jun 2016 18:57:23 +0200 Subject: [PATCH] lwip: Drop include in coap_io.h The include is not required, as the `struct ud_pcb *` pointer doesn't require the struct to be known yet, but caused trouble when the include led to an inclusion loop back again to libcoap via the lwippools. (The loop was caught by include guards and caused undeclared type errors because the later parts of the headers were not yet processed). --- include/coap/coap_io.h | 4 ---- src/coap_io_lwip.c | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/coap/coap_io.h b/include/coap/coap_io.h index 0263ef9b..7a48b319 100644 --- a/include/coap/coap_io.h +++ b/include/coap/coap_io.h @@ -15,10 +15,6 @@ #include "address.h" -#ifdef WITH_LWIP -# include -#endif - /** * Abstract handle that is used to identify a local network interface. */ diff --git a/src/coap_io_lwip.c b/src/coap_io_lwip.c index 12534473..67ed2032 100644 --- a/src/coap_io_lwip.c +++ b/src/coap_io_lwip.c @@ -10,6 +10,7 @@ #include "coap_config.h" #include "mem.h" #include "coap_io.h" +#include void coap_packet_populate_endpoint(coap_packet_t *packet, coap_endpoint_t *target) {