From c17594c1d0a69152cc10edbdf1f2d51b689cb16c Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 21 Mar 2015 20:12:14 +0100 Subject: [PATCH] PPP, CORE, don't build get_loop_output() if demand support (not supported) is not enabled --- src/include/netif/ppp/ppp_impl.h | 2 ++ src/netif/ppp/ppp.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index f978d323..6ef65035 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -482,7 +482,9 @@ int ccp_fatal_error(ppp_pcb *pcb); int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip); #endif /* PPP_IDLETIMELIMIT */ +#if DEMAND_SUPPORT int get_loop_output(void); +#endif /* DEMAND_SUPPORT */ u32_t get_mask(u32_t addr); diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 2264091c..76bf75cd 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -1142,6 +1142,7 @@ int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) { } #endif /* PPP_IDLETIMELIMIT */ +#if DEMAND_SUPPORT /******************************************************************** * * get_loop_output - get outgoing packets from the ppp device, @@ -1149,9 +1150,9 @@ int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) { * Return value is 1 if we need to bring up the link, 0 otherwise. */ int get_loop_output(void) { - /* FIXME: necessary for "demand", do we really need to support on-demand ? */ return 0; } +#endif /* DEMAND_SUPPORT */ /******************************************************************** *