summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c963d35)
raw | patch | inline | side by side (parent: c963d35)
author | Landry Breuil <landry@rhaalovely.net> | |
Mon, 17 Nov 2014 10:38:40 +0000 (11:38 +0100) | ||
committer | Landry Breuil <landry@rhaalovely.net> | |
Mon, 17 Nov 2014 10:38:40 +0000 (11:38 +0100) |
src/tcpconns.c | patch | blob | history |
diff --git a/src/tcpconns.c b/src/tcpconns.c
index f716a10334b7fbf2c339c16de137940b712782aa..0236c9d0fc6dbbf6ede8da7fcfa90709e65f3ac9 100644 (file)
--- a/src/tcpconns.c
+++ b/src/tcpconns.c
static int conn_read (void)
{
struct inpcbtable table;
-#ifdef __OpenBSD__ || __NetBSD_Version__ > 699002700
+#if !defined(__OpenBSD__) && (defined(__NetBSD_Version__) && __NetBSD_Version__ <= 699002700)
struct inpcb *head;
#endif
struct inpcb *next;
if (status != 0)
return (-1);
-#ifdef __OpenBSD__ || __NetBSD_Version__ > 699002700
+#if defined(__OpenBSD__) || (defined(__NetBSD_Version__) && __NetBSD_Version__ > 699002700)
/* inpt_queue is a TAILQ on OpenBSD */
/* Get the first pcb */
next = (struct inpcb *)TAILQ_FIRST (&table.inpt_queue);
kread ((u_long) next, &inpcb, sizeof (inpcb));
/* Advance `next' */
-#ifdef __OpenBSD__ || __NetBSD_Version__ > 699002700
+#if defined(__OpenBSD__) || (defined(__NetBSD_Version__) && __NetBSD_Version__ > 699002700)
/* inpt_queue is a TAILQ on OpenBSD */
next = (struct inpcb *)TAILQ_NEXT (&inpcb, inp_queue);
#else