net: Fix compile failure in net.c
Add missing "defined" statement to fix the compile failures. Signed-off-by: Holger Dengler <dengler@linutronix.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
d7e8ac6f45
commit
66c89ee31b
@ -489,7 +489,7 @@ restart:
|
|||||||
cdp_start();
|
cdp_start();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_NETCONSOLE) && !defined(CONFIG_SPL_BUILD)
|
||||||
case NETCONS:
|
case NETCONS:
|
||||||
nc_start();
|
nc_start();
|
||||||
break;
|
break;
|
||||||
@ -1258,7 +1258,7 @@ void net_process_received_packet(uchar *in_packet, int len)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_NETCONSOLE) && !defined(CONFIG_SPL_BUILD)
|
||||||
nc_input_packet((uchar *)ip + IP_UDP_HDR_SIZE,
|
nc_input_packet((uchar *)ip + IP_UDP_HDR_SIZE,
|
||||||
src_ip,
|
src_ip,
|
||||||
ntohs(ip->udp_dst),
|
ntohs(ip->udp_dst),
|
||||||
|
Loading…
Reference in New Issue
Block a user