X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fcbcp.h;h=4bd106be6b9fe30004ce14c796138053b165d5ee;hp=e317caea9562ae6a4066f080d65d145096d74db9;hb=4f3e40659fcccce45068473ae94cfead18260c77;hpb=827e4952d6bcc8dd9c8fdda54a509e5b59685c34 diff --git a/pppd/cbcp.h b/pppd/cbcp.h index e317cae..4bd106b 100644 --- a/pppd/cbcp.h +++ b/pppd/cbcp.h @@ -30,11 +30,15 @@ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef CBCP_H -#define CBCP_H +#ifndef PPP_CBCP_H +#define PPP_CBCP_H #include "pppdconf.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct cbcp_state { int us_unit; /* Interface unit number */ u_char us_id; /* Current id */ @@ -57,4 +61,9 @@ extern struct protent cbcp_protent; #define CB_CONF_USER 2 #define CB_CONF_ADMIN 3 #define CB_CONF_LIST 4 + +#ifdef __cplusplus +} #endif + +#endif // PPP_CBCP_H