pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/oidentd Fix build problem under NetBSD 1.6Y and ab...
details: https://anonhg.NetBSD.org/pkgsrc/rev/24d619178dfe
branches: trunk
changeset: 465653:24d619178dfe
user: tron <tron%pkgsrc.org@localhost>
date: Sun Jan 04 11:48:44 2004 +0000
description:
Fix build problem under NetBSD 1.6Y and above.
diffstat:
net/oidentd/distinfo | 3 ++-
net/oidentd/patches/patch-ac | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletions(-)
diffs (50 lines):
diff -r 22cc2e0b3f91 -r 24d619178dfe net/oidentd/distinfo
--- a/net/oidentd/distinfo Sun Jan 04 11:48:30 2004 +0000
+++ b/net/oidentd/distinfo Sun Jan 04 11:48:44 2004 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/01/03 23:21:44 tron Exp $
+$NetBSD: distinfo,v 1.2 2004/01/04 11:48:44 tron Exp $
SHA1 (oidentd-2.0.7.tar.gz) = c973b436e6f8cab87b5e2f557e901722e27f1e79
Size (oidentd-2.0.7.tar.gz) = 196027 bytes
SHA1 (patch-aa) = b5c82f425fc9f5174dd4efb4c4d13bdf78486beb
SHA1 (patch-ab) = 264178c5cc79c744354ab228678cb41bdc27b198
+SHA1 (patch-ac) = 20a1d998b98bfae08faf3578abd6fd186a921ee6
diff -r 22cc2e0b3f91 -r 24d619178dfe net/oidentd/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/oidentd/patches/patch-ac Sun Jan 04 11:48:44 2004 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ac,v 1.1 2004/01/04 11:48:44 tron Exp $
+
+--- src/kernel/netbsd.c.orig 2004-01-04 12:27:05.000000000 +0100
++++ src/kernel/netbsd.c 2004-01-04 12:46:17.000000000 +0100
+@@ -162,7 +162,7 @@
+ if (tcbtablep == NULL)
+ return (NULL);
+
+- kpcbp = tcbtablep->inpt_queue.cqh_first;
++ kpcbp = (struct inpcb *) tcbtablep->inpt_queue.cqh_first;
+ while (kpcbp != (struct inpcb *) ktcbtablep) {
+ if (getbuf((u_long) kpcbp, &pcb, sizeof(struct inpcb)) == -1)
+ break;
+@@ -185,7 +185,7 @@
+ return (pcb.inp_socket);
+ }
+
+- kpcbp = pcb.inp_queue.cqe_next;
++ kpcbp = (struct inpcb *) pcb.inp_queue.cqe_next;
+ }
+
+ return (NULL);
+@@ -351,7 +351,11 @@
+ return (tcb6_temp.in6p_socket);
+ }
+
++#if defined(__NetBSD__) && __NetBSD_Version__ >= 106250000 /* 1.6Y */
++ tcb6_cur = tcb6_temp.in6p_queue.cqe_next;
++#else
+ tcb6_cur = tcb6_temp.in6p_next;
++#endif
+ if (getbuf((u_long) tcb6_cur, &tcb6_temp, sizeof(tcb6_temp)) == -1)
+ break;
+ } while ((u_long) tcb6_cur != kinfo->nl[N_TCB6].n_value);
Home |
Main Index |
Thread Index |
Old Index