build: support for Linux 2.6.30

Fix a compile error with xt_quota2. Linux kernel commit
v2.6.29-7544-g3ba113d removed the "owner" member.
This commit is contained in:
kd6lvw
2009-06-10 19:01:17 -07:00
committed by Jan Engelhardt
parent 31e4e18998
commit 71812a2053
2 changed files with 3 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
- IPMARK: print missing --shift parameter
- build: use readlink -f in extensions/ipset/
- build: support for Linux 2.6.30
Xtables-addons 1.16 (May 27 2009)

View File

@@ -104,7 +104,9 @@ static struct quota_counter *q2_get_counter(const struct xt_quota_mtinfo2 *q)
if (p == NULL || IS_ERR(p))
goto out;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29)
p->owner = THIS_MODULE;
#endif
p->data = e;
p->read_proc = quota_proc_read;
p->write_proc = quota_proc_write;