Add a sanity check for PPP, and a #if !NO_SYS/#endif for slipif_loop

This commit is contained in:
fbernon 2007-09-12 19:16:44 +00:00
parent c265fa3331
commit 8c847a85ae
2 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,9 @@
#if (LWIP_IGMP && (MEMP_NUM_IGMP_GROUP<=1)) #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" #error "If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP>1 in your lwipopts.h"
#endif #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)) #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" #error "If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h"
#endif #endif

View File

@ -204,6 +204,7 @@ slipif_input(struct netif *netif)
return NULL; return NULL;
} }
#if !NO_SYS
/** /**
* The SLIP input thread. * The SLIP input thread.
* *
@ -227,6 +228,7 @@ slipif_loop(void *nf)
} }
} }
} }
#endif /* !NO_SYS */
/** /**
* SLIP netif initialization * SLIP netif initialization