From f9ae65acd8d9591557473078c8f6f129a64340f5 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 28 Mar 2015 00:14:11 +0100 Subject: [PATCH] PPP, MPPE, added build macro if MPPE is not enabled --- src/netif/ppp/mppe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/netif/ppp/mppe.c b/src/netif/ppp/mppe.c index 9edfe5b5..700f99ba 100644 --- a/src/netif/ppp/mppe.c +++ b/src/netif/ppp/mppe.c @@ -23,6 +23,9 @@ * deprecated in 2.6 */ +#include "lwip/opt.h" +#if PPP_SUPPORT && MPPE_SUPPORT /* don't build if not configured for use in lwipopts.h */ + #include "lwip/err.h" #include "netif/ppp/ppp_impl.h" @@ -676,3 +679,5 @@ static void ppp_mppe_cleanup(void) ppp_unregister_compressor(&ppp_mppe); kfree(sha_pad); } + +#endif /* PPP_SUPPORT && MPPE_SUPPORT */