From 8f66dc48308077f16201d2e202cf1b040a28153f Mon Sep 17 00:00:00 2001 From: Ajay Saini Date: Tue, 11 Oct 2016 18:30:53 -0700 Subject: [PATCH] Compilation failure in coap_io.c when NDEBUG=1 Currenlty building libcoap with NDEBUG=1 causes below compilation error : "coap_io.c: error : 'COAP_MAX_PDU_SIZE': undeclared identifier". file which contains the definition of 'COAP_MAX_PDU_SIZE' is included only when NDEBUG=0 (inside ). Building iotivity with RELEASE=1 and TEST=1, fails because of above reason. Proposed fix is to include inside coap_io.c. --- src/coap_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coap_io.c b/src/coap_io.c index 57baa222c2..46a41f2bfd 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -54,6 +54,7 @@ typedef SOCKET coap_socket_t; #include "debug.h" #include "mem.h" #include "coap_io.h" +#include "pdu.h" #if !defined(WITH_LWIP) && !defined(WITH_CONTIKI) struct coap_packet_t {