Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure in coap_io.c when NDEBUG=1 #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ajsaini
Copy link

@ajsaini ajsaini commented Oct 12, 2016

Currenlty building libcoap with NDEBUG=1 causes below compilation error :
"coap_io.c: error : 'COAP_MAX_PDU_SIZE': undeclared identifier".
<pdu.h> file which contains the definition of 'COAP_MAX_PDU_SIZE' is
included only when NDEBUG=0 (inside <debug.h>).
Building iotivity with RELEASE=1 and TEST=1, fails because of above
reason. Proposed fix is to include <pdu.h> inside coap_io.c.

Currenlty building libcoap with NDEBUG=1 causes below compilation error :
"coap_io.c: error : 'COAP_MAX_PDU_SIZE': undeclared identifier".
<pdu.h> file which contains the definition of 'COAP_MAX_PDU_SIZE' is
included only when NDEBUG=0 (inside <debug.h>).
Building iotivity with RELEASE=1 and TEST=1, fails because of above
reason. Proposed fix is to include <pdu.h> inside coap_io.c.
@dthaler
Copy link
Owner

dthaler commented Oct 14, 2016

@ajsaini thanks, fixed!

dthaler pushed a commit that referenced this pull request Jan 27, 2017
Pulling changes from dthaler/libcoap
dthaler pushed a commit that referenced this pull request Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants