From 9eef4761819d258b7882117c6e18d11a193cd59f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 3 Jun 2022 22:21:23 +0200 Subject: [PATCH] examples/telnet_server: fix build with shell_lock --- examples/telnet_server/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/telnet_server/main.c b/examples/telnet_server/main.c index 41f6b7b97a13..65ce256050a6 100644 --- a/examples/telnet_server/main.c +++ b/examples/telnet_server/main.c @@ -71,10 +71,13 @@ void telnet_cb_pre_connected(sock_tcp_t *sock) printf("%s connected\n", addr_str); } +/* shell lock module makes use of disconnect callback */ +#ifndef MODULE_SHELL_LOCK void telnet_cb_disconneced(void) { puts("disconnected"); } +#endif void telnet_cb_connected(sock_tcp_t *sock) {