build: additional compilation fixes for Linux 3.2/3.3

This commit is contained in:
Jan Engelhardt
2012-01-04 21:34:52 +01:00
parent 7a1ad32d1a
commit 076610e3af
6 changed files with 18 additions and 2 deletions

View File

@@ -31,8 +31,13 @@
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#endif
#include "xt_DNETMAP.h"
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
# include <net/netfilter/nf_nat.h>
#else
# include <linux/netfilter/nf_nat.h>
#endif
#include "compat_xtables.h"
#include "xt_DNETMAP.h"
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Marek Kierdelewicz <marek@koba.pl>");