From e3289116b9a8dcff1f1fae7da938e08b3bd890b4 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 2 May 2017 15:21:52 +0200 Subject: [PATCH] Fix next build error introduced in my last commit --- src/api/sockets.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/sockets.c b/src/api/sockets.c index 0d3455bb..af2abe07 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -2938,16 +2938,23 @@ lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_ switch (NETCONNTYPE_GROUP(netconn_type(sock->conn))) { +#if LWIP_TCP case NETCONN_TCP: tcp_bind_netif(sock->conn->pcb.tcp, n); break; +#endif +#if LWIP_UDP case NETCONN_UDP: udp_bind_netif(sock->conn->pcb.udp, n); break; +#endif +#if LWIP_RAW case NETCONN_RAW: raw_bind_netif(sock->conn->pcb.raw, n); break; +#endif default: + LWIP_ASSERT("Unhandled netconn type in SO_BINDTODEVICE", 0); break; } }