From 8c847a85ae21fb52ab0af20d73544343cfe9b55b Mon Sep 17 00:00:00 2001 From: fbernon Date: Wed, 12 Sep 2007 19:16:44 +0000 Subject: [PATCH] Add a sanity check for PPP, and a #if !NO_SYS/#endif for slipif_loop --- src/core/init.c | 3 +++ src/netif/slipif.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/core/init.c b/src/core/init.c index 328b3ca5..c53dbbc2 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -96,6 +96,9 @@ #if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1)) #error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h" #endif +#if (PPP_SUPPORT && (NO_SYS==1)) + #error "If you want to use PPP, you have to define NO_SYS=0 in your lwipopts.h" +#endif #if ((LWIP_SOCKET || LWIP_NETCONN) && (NO_SYS==1)) #error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h" #endif diff --git a/src/netif/slipif.c b/src/netif/slipif.c index 162d6a8a..d7604126 100644 --- a/src/netif/slipif.c +++ b/src/netif/slipif.c @@ -204,6 +204,7 @@ slipif_input(struct netif *netif) return NULL; } +#if !NO_SYS /** * The SLIP input thread. * @@ -227,6 +228,7 @@ slipif_loop(void *nf) } } } +#endif /* !NO_SYS */ /** * SLIP netif initialization