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

Fix for where WITH_TCP is defined, WITH_WS is not. #8

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

mwichmann
Copy link

The function coap_pdu_parse2() as changed by iotivity patches has a
block of code bracketed by

#if defined(WITH_TCP) || defined(WITH_WS)

the problem is this block contains a reference to a structure member
that is defined only if WITH_WS is defined, and it is possible to build
this code in iotivity in the presence of WITH_TCP and the absence of
WITH_WS. Whether that should ever happen is a separate question; the
change keeps these two conditions separate so this can be used in the
iotivity CI system which does build some targets in the way noted.

Signed-off-by: Mats Wichmann [email protected]

The function coap_pdu_parse2() as changed by iotivity patches has a
block of code bracketed by

  #if defined(WITH_TCP) || defined(WITH_WS)

the problem is this block contains a reference to a structure member
that is defined only if WITH_WS is defined, and it is possible to build
this code in iotivity in the presence of WITH_TCP and the absence of
WITH_WS. Whether that should ever happen is a separate question; the
change keeps these two conditions separate so this can be used in the
iotivity CI system which does build some targets in the way noted.

Signed-off-by: Mats Wichmann <[email protected]>
@dthaler dthaler merged commit 5a16b17 into dthaler:develop Sep 13, 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