mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
build: Fix client and server only builds
Also correct LwIP build directory.
This commit is contained in:
1 parent
de1bc9f3cb
commit
692c06d95f
3 files changed
+6
-2
No files matched your search
@@ -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; \
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user