mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10190 from tymoteuszblochmobica/fixtcp
Fixed compilation error in LWIPStack class if lwip tcp is disabled.pull/9904/head
commit
e8e6ad4a06
|
@ -514,11 +514,11 @@ nsapi_error_t LWIP::setsockopt(nsapi_socket_t handle, int level, int optname, co
|
||||||
if (optlen > NSAPI_INTERFACE_NAME_MAX_SIZE) {
|
if (optlen > NSAPI_INTERFACE_NAME_MAX_SIZE) {
|
||||||
return NSAPI_ERROR_UNSUPPORTED;
|
return NSAPI_ERROR_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
#if LWIP_TCP
|
||||||
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_TCP) {
|
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_TCP) {
|
||||||
s->conn->pcb.tcp->interface_name = (const char *)optval;
|
s->conn->pcb.tcp->interface_name = (const char *)optval;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_UDP) {
|
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_UDP) {
|
||||||
s->conn->pcb.udp->interface_name = (const char *)optval;
|
s->conn->pcb.udp->interface_name = (const char *)optval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue