]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/pppd.h
Fix compilation without ipv6cp support (#408)
[ppp.git] / pppd / pppd.h
index 135fd35eb1e7aef961cafc58230ab6e789e98711..ed50f9b3557b60751711af17780bae6365057266 100644 (file)
 #ifndef PPP_PPPD_H
 #define PPP_PPPD_H
 
-#ifdef HAVE_STDARG_H
 #include <stdarg.h>
-#endif
-
-#ifdef HAVE_STDBOOL_H
 #include <stdbool.h>
-#endif
-
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif
-
-#ifdef HAVE_STDINT_H
 #include <stdint.h>
-#endif
-
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "pppdconf.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Limits
  */
@@ -574,4 +564,8 @@ extern int  (*allowed_address_hook)(uint32_t addr);
 extern void (*snoop_recv_hook)(unsigned char *p, int len);
 extern void (*snoop_send_hook)(unsigned char *p, int len);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* PPP_PPPD_H */