diff options
author | tron <tron@pkgsrc.org> | 2004-01-04 11:48:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-01-04 11:48:44 +0000 |
commit | 714041931cd892b8bd37084425764ba57a3ee330 (patch) | |
tree | baa84ec8a406283e47995e5d661766fcc9c5d71c | |
parent | a6fc8bcee2ae2cbee183acf325deb59b6f273e47 (diff) | |
download | pkgsrc-714041931cd892b8bd37084425764ba57a3ee330.tar.gz |
Fix build problem under NetBSD 1.6Y and above.
-rw-r--r-- | net/oidentd/distinfo | 3 | ||||
-rw-r--r-- | net/oidentd/patches/patch-ac | 34 |
2 files changed, 36 insertions, 1 deletions
diff --git a/net/oidentd/distinfo b/net/oidentd/distinfo index 5c4e409e669..a88bc31c99f 100644 --- a/net/oidentd/distinfo +++ b/net/oidentd/distinfo @@ -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 --git a/net/oidentd/patches/patch-ac b/net/oidentd/patches/patch-ac new file mode 100644 index 00000000000..cbede48a792 --- /dev/null +++ b/net/oidentd/patches/patch-ac @@ -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); |