summaryrefslogtreecommitdiffstats
path: root/include/libiptc/libip6tc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libiptc/libip6tc.h')
-rw-r--r--include/libiptc/libip6tc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h
index 3f1eadb2..33ec69d2 100644
--- a/include/libiptc/libip6tc.h
+++ b/include/libiptc/libip6tc.h
@@ -4,6 +4,11 @@
#include <linux/types.h>
#include <libiptc/ipt_kernel_headers.h>
+#ifdef __cplusplus
+# include <climits>
+#else
+# include <limits.h> /* INT_MAX in ip6_tables.h */
+#endif
#include <linux/netfilter_ipv6/ip6_tables.h>
#ifndef IP6T_MIN_ALIGN