summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-03 12:13:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-03 12:13:14 +0000
commitc16d8717596e2c0df7ecd88683dad062f039eb7d (patch)
tree12abfbb696230f3d06b8ddf2818512a864f6ec38 /sys
parent1a035cf7af4926e4ba6739df9186a5db3bea6457 (diff)
Fix !INET6 build.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sysctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index d15f5eaa8e9..042ce02cc61 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.289 2015/08/28 04:38:47 guenther Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.290 2015/09/03 12:13:13 mpi Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1269,7 +1269,10 @@ sysctl_file(int *name, u_int namelen, char *where, size_t *sizep,
case KERN_FILE_BYFILE:
/* use the inp-tables to pick up closed connections, too */
if (arg == DTYPE_SOCKET) {
- extern struct inpcbtable rawcbtable, rawin6pcbtable;
+ extern struct inpcbtable rawcbtable;
+#ifdef INET6
+ extern struct inpcbtable rawin6pcbtable;
+#endif
struct inpcb *inp;
int s;