This fixes linking errors for 3rd-party C++ code. Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- include/xtables.h.in | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/xtables.h.in b/include/xtables.h.in index a399f90..4d4ca0a 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -203,6 +203,10 @@ struct xtables_globals void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3))); }; +#ifdef __cplusplus +extern "C" { +#endif + extern const char *xtables_modprobe_program; extern struct xtables_match *xtables_matches; extern struct xtables_target *xtables_targets; @@ -295,4 +299,8 @@ extern void _init(void); #endif +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* _XTABLES_H */ -- 1.6.3.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html