提交 66c89ee3 编写于 作者: H Holger Dengler 提交者: Joe Hershberger

net: Fix compile failure in net.c

Add missing "defined" statement to fix the compile failures.
Signed-off-by: NHolger Dengler <dengler@linutronix.de>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 d7e8ac6f
......@@ -489,7 +489,7 @@ restart:
cdp_start();
break;
#endif
#if defined(CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
#if defined(CONFIG_NETCONSOLE) && !defined(CONFIG_SPL_BUILD)
case NETCONS:
nc_start();
break;
......@@ -1258,7 +1258,7 @@ void net_process_received_packet(uchar *in_packet, int len)
}
#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,
src_ip,
ntohs(ip->udp_dst),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册