mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Fixed compilation error in LWIPStack class if lwip tcp is disabled.
							parent
							
								
									db8a018fec
								
							
						
					
					
						commit
						646c925d60
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue