From a4f56b6fa89bf3db3d3eb55d5631ff261ecd72e5 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 5 Jul 2016 15:56:08 +0300 Subject: [PATCH] net: Fix compilation if IPv4 is disabled Change-Id: I4ef4ce1c418361ce01ceb77204c830258a163683 Signed-off-by: Jukka Rissanen --- drivers/slip/slip.c | 1 + net/yaip/l2/ethernet.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/slip/slip.c b/drivers/slip/slip.c index 3f8cfec7cb1..baf82c09c1b 100644 --- a/drivers/slip/slip.c +++ b/drivers/slip/slip.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff --git a/net/yaip/l2/ethernet.c b/net/yaip/l2/ethernet.c index cc991b85de2..09798102a15 100644 --- a/net/yaip/l2/ethernet.c +++ b/net/yaip/l2/ethernet.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "net_private.h" @@ -226,7 +227,10 @@ static enum net_verdict ethernet_send(struct net_if *iface, frag = frag->frags; } +#ifdef CONFIG_NET_ARP send: +#endif /* CONFIG_NET_ARP */ + net_if_queue_tx(iface, buf); return NET_OK;