Merge pull request #10190 from tymoteuszblochmobica/fixtcp

Fixed compilation error in LWIPStack class if lwip tcp is disabled.
pull/9904/head
Cruz Monrreal 2019-03-27 00:23:37 -05:00 committed by GitHub
commit e8e6ad4a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {
return NSAPI_ERROR_UNSUPPORTED;
}
#if LWIP_TCP
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_TCP) {
s->conn->pcb.tcp->interface_name = (const char *)optval;
}
#endif
if (NETCONNTYPE_GROUP(s->conn->type) == NETCONN_UDP) {
s->conn->pcb.udp->interface_name = (const char *)optval;
}