Skip to content

Commit e8e6ad4

Browse files
author
Cruz Monrreal
authored
Merge pull request #10190 from tymoteuszblochmobica/fixtcp
Fixed compilation error in LWIPStack class if lwip tcp is disabled.
2 parents d81f365 + 646c925 commit e8e6ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/lwipstack/LWIPStack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,11 @@ nsapi_error_t LWIP::setsockopt(nsapi_socket_t handle, int level, int optname, co
514514
if (optlen > NSAPI_INTERFACE_NAME_MAX_SIZE) {
515515
return NSAPI_ERROR_UNSUPPORTED;
516516
}
517-
517+
#if LWIP_TCP
518518
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_TCP) {
519519
s->conn->pcb.tcp->interface_name = (const char *)optval;
520520
}
521-
521+
#endif
522522
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_UDP) {
523523
s->conn->pcb.udp->interface_name = (const char *)optval;
524524
}

0 commit comments

Comments
 (0)