diff --git a/src/include/netif/ppp/ccp.h b/src/include/netif/ppp/ccp.h index a7271dbf..d6e21bf8 100644 --- a/src/include/netif/ppp/ccp.h +++ b/src/include/netif/ppp/ccp.h @@ -33,6 +33,9 @@ #include "lwip/opt.h" #if PPP_SUPPORT && CCP_SUPPORT /* don't build if not configured for use in lwipopts.h */ +#ifndef CCP_H +#define CCP_H + typedef struct ccp_options { unsigned int bsd_compress :1; /* do BSD Compress? */ unsigned int deflate :1; /* do Deflate? */ @@ -50,4 +53,5 @@ typedef struct ccp_options { extern const struct protent ccp_protent; +#endif /* CCP_H */ #endif /* PPP_SUPPORT && CCP_SUPPORT */ diff --git a/src/include/netif/ppp/ppp.h b/src/include/netif/ppp/ppp.h index 05cfed97..5027b20e 100644 --- a/src/include/netif/ppp/ppp.h +++ b/src/include/netif/ppp/ppp.h @@ -153,6 +153,9 @@ typedef unsigned char u_char; #include "fsm.h" #include "lcp.h" +#if CCP_SUPPORT +#include "ccp.h" +#endif /* CCP_SUPPORT */ #if PPP_IPV4_SUPPORT #include "ipcp.h" #endif /* PPP_IPV4_SUPPORT */