diff options
author | skv <skv@FreeBSD.org> | 2008-09-29 01:43:12 +0800 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2008-09-29 01:43:12 +0800 |
commit | 5926c744c7646c52e7571161c89ced5ae931646f (patch) | |
tree | 3127106ce294324bdd43b9bed845b67e5f404b84 /net-mgmt | |
parent | 3eaf8e78bfa0edf60bf93886ebfcb7a32e355871 (diff) | |
download | freebsd-ports-gnome-5926c744c7646c52e7571161c89ced5ae931646f.tar.gz freebsd-ports-gnome-5926c744c7646c52e7571161c89ced5ae931646f.tar.zst freebsd-ports-gnome-5926c744c7646c52e7571161c89ced5ae931646f.zip |
Unbreak build on 7.1
Submitted by: pluknet <pluknet xxx gmail.com>
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/ng_ipacct/files/patch-ng_ipacct.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c b/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c new file mode 100644 index 000000000000..d90052aa3231 --- /dev/null +++ b/net-mgmt/ng_ipacct/files/patch-ng_ipacct.c @@ -0,0 +1,14 @@ +--- ng_ipacct/ng_ipacct.c.orig 2008-09-28 17:37:23.000000000 +0000 ++++ ng_ipacct/ng_ipacct.c 2008-09-28 17:39:37.000000000 +0000 +@@ -902,7 +902,11 @@ + int i; + + for (i = 0, ina = r->r_dst, port = r->r_dport; i < 2; i++) { ++#if __FreeBSD_version >= 700110 ++ pcb = in_pcblookup_local(pcbinfo, ina, port, 1, NOCRED); ++#else + pcb = in_pcblookup_local(pcbinfo, ina, port, 1); ++#endif + if ((pcb != NULL) && + (pcb->inp_laddr.s_addr == ina.s_addr)) { + break; |