From 3b60c855e1ab1a53149fb1ced3ffcf354bcefb03 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 3 Dec 2015 09:25:59 +0800 Subject: [PATCH] netbuf: Move #include "lwip/opt.h" out of #if LWIP_NETCONN || LWIP_SOCKET guard LWIP_NETCONN and LWIP_SOCKET are defined in opt.h, so move #include "lwip/opt.h" out of #if LWIP_NETCONN || LWIP_SOCKET guard. Signed-off-by: Axel Lin --- src/include/lwip/netbuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/netbuf.h b/src/include/lwip/netbuf.h index 2102c4a5..0af5fdd0 100644 --- a/src/include/lwip/netbuf.h +++ b/src/include/lwip/netbuf.h @@ -32,6 +32,8 @@ #ifndef LWIP_HDR_NETBUF_H #define LWIP_HDR_NETBUF_H +#include "lwip/opt.h" + #if LWIP_NETCONN || LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */ /* don't export the netbuf functions when socket API is enabled but netconn API is disabled */ @@ -41,7 +43,6 @@ #define LWIP_NETCONN_SCOPE static #endif /* LWIP_NETCONN */ -#include "lwip/opt.h" #include "lwip/pbuf.h" #include "lwip/ip_addr.h" #include "lwip/ip6_addr.h"