From d54240bdea45c3f0550c752ea4a454bbb8e1ed69 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 19 Apr 2017 08:44:05 +0200 Subject: [PATCH] One more try to fix compile without TCP --- src/api/sockets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/sockets.c b/src/api/sockets.c index 8ad82d42..5f1d9c64 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -991,6 +991,7 @@ lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port, return truncated; } +#if LWIP_TCP /* Helper function to get a tcp socket's remote address info */ static int lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fromlen, const char *dbg_fn, int dbg_s, int dbg_ret) @@ -1019,6 +1020,7 @@ lwip_recv_tcp_from(struct lwip_sock *sock, struct sockaddr *from, socklen_t *fro } return 0; } +#endif /* Helper function to receive a netbuf from a udp or raw netconn. * Keeps sock->lastdata for peeking.