From 3b9a42e254e8731b7e14f82eb1c0799b16e60183 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Thu, 1 Oct 2015 15:17:16 +1000 Subject: [PATCH] Updated #includes to work on new SDK. Both "c_types.h" and "lwip/ip_addr.h" don't get included indirectly anymore. --- app/coap/coap_io.h | 2 ++ app/include/rom.h | 2 ++ app/modules/coap.c | 1 + app/modules/mqtt.c | 1 + app/modules/net.c | 1 + 5 files changed, 7 insertions(+) diff --git a/app/coap/coap_io.h b/app/coap/coap_io.h index 801b7328..090149c4 100644 --- a/app/coap/coap_io.h +++ b/app/coap/coap_io.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include "c_types.h" +#include "lwip/ip_addr.h" #include "espconn.h" #include "pdu.h" #include "hash.h" diff --git a/app/include/rom.h b/app/include/rom.h index ca6227fe..ba48fcb7 100644 --- a/app/include/rom.h +++ b/app/include/rom.h @@ -3,6 +3,8 @@ #ifndef _ROM_H_ #define _ROM_H_ +#include "c_types.h" + // SHA1 is assumed to match the netbsd sha1.h headers #define SHA1_DIGEST_LENGTH 20 #define SHA1_DIGEST_STRING_LENGTH 41 diff --git a/app/modules/coap.c b/app/modules/coap.c index 8e1ba6c0..1d496e5f 100644 --- a/app/modules/coap.c +++ b/app/modules/coap.c @@ -12,6 +12,7 @@ #include "c_types.h" #include "mem.h" +#include "lwip/ip_addr.h" #include "espconn.h" #include "driver/uart.h" diff --git a/app/modules/mqtt.c b/app/modules/mqtt.c index 0cd2398b..6ba3f8fa 100644 --- a/app/modules/mqtt.c +++ b/app/modules/mqtt.c @@ -12,6 +12,7 @@ #include "c_types.h" #include "mem.h" +#include "lwip/ip_addr.h" #include "espconn.h" #include "mqtt_msg.h" diff --git a/app/modules/net.c b/app/modules/net.c index 4c91f44a..f0b3256c 100644 --- a/app/modules/net.c +++ b/app/modules/net.c @@ -12,6 +12,7 @@ #include "c_types.h" #include "mem.h" +#include "lwip/ip_addr.h" #include "espconn.h" #include "lwip/dns.h"