build: Fix client and server only builds

Also correct LwIP build directory.
This commit is contained in:
Jon Shallow authored and mrdeep1 committed 2022-09-27 10:37:38 +01:00
1 parent de1bc9f3cb
commit 692c06d95f
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
# This file is part of the CoAP C library libcoap. Please see README and
# COPYING for terms of use.
libcoap_dir = ../../
libcoap_dir = ../..
LIBCOAP_API_VERSION = $(shell if [ -f $(libcoap_dir)/configure.ac ]; then \
sed -ne 's/^LIBCOAP_API_VERSION=\([0-9]\+\).*$$/\1/p' $(libcoap_dir)/configure.ac; \
+2
View File
@@ -398,7 +398,9 @@ void coap_socket_close(coap_socket_t *sock) {
coap_socket_strerror(), errno);
}
}
#if COAP_SERVER_SUPPORT
sock->endpoint = NULL;
#endif /* COAP_SERVER_SUPPORT */
sock->session = NULL;
#endif /* COAP_EPOLL_SUPPORT */
coap_closesocket(sock->fd);
+3 -1
View File
@@ -1088,7 +1088,9 @@ coap_client_delay_first(coap_session_t *session)
session->delay_recursive = 0;
coap_session_release(session);
}
#endif /* COAP_CLIENT_SUPPORT */
#else /* ! COAP_CLIENT_SUPPORT */
(void)session;
#endif /* ! COAP_CLIENT_SUPPORT */
return 1;
}