]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
fix a compiler warning
authorHarald Welte <laforge@gnumonks.org>
Sun, 30 Mar 2003 20:26:42 +0000 (20:26 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sun, 30 Mar 2003 20:26:42 +0000 (20:26 +0000)
extensions/libipt_recent.c

index e38fa319581f6799250584184d83264e28d7007b..09ea92202a2348ed50e2a52c992f06a989da3d1c 100644 (file)
@@ -8,6 +8,17 @@
 #include <iptables.h>
 #include <linux/netfilter_ipv4/ipt_recent.h>
 
+/* need thos two to not fail compilation with old kernel, new userspace */
+#ifndef RECENT_NAME
+#define RECENT_NAME    "ipt_recent"
+#endif /* RECENT_NAME */
+#ifndef RECENT_VER
+#define RECENT_VER     "unknown"
+#endif /* RECENT_VER */
+#ifndef IPT_RECENT_NAME_LEN
+#define        IPT_RECENT_NAME_LEN     200
+#endif /* IPT_RECENT_NAME_LEN */
+
 /* Function which prints out usage message. */
 static void
 help(void)