From a637024fa16ac41cc85970ad5990b17f9cf6900e Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Tue, 12 Mar 2024 21:44:44 +0000 Subject: [PATCH] coap_io.c: Fix client only builds for coap_socket_bind_udp --- src/coap_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coap_io.c b/src/coap_io.c index ded6a80a..b4c53c31 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -88,6 +88,7 @@ coap_mfree_endpoint(coap_endpoint_t *ep) { #if !defined(WITH_CONTIKI) && !defined(WITH_LWIP) && !defined(RIOT_VERSION) +#if COAP_SERVER_SUPPORT int coap_socket_bind_udp(coap_socket_t *sock, const coap_address_t *listen_addr, @@ -198,6 +199,7 @@ error: coap_socket_close(sock); return 0; } +#endif /* COAP_SERVER_SUPPORT */ #if COAP_CLIENT_SUPPORT int