Module Name: src Committed By: cegger Date: Mon Oct 26 16:41:35 UTC 2009
Modified Files: src/sys/net: if.c Log Message: buildfix: only declare sysctl_net_ifq_setup() if INET or INET6 is defined To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/sys/net/if.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if.c diff -u src/sys/net/if.c:1.239 src/sys/net/if.c:1.240 --- src/sys/net/if.c:1.239 Sat Oct 3 01:46:39 2009 +++ src/sys/net/if.c Mon Oct 26 16:41:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.239 2009/10/03 01:46:39 elad Exp $ */ +/* $NetBSD: if.c,v 1.240 2009/10/26 16:41:35 cegger Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc. @@ -90,7 +90,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.239 2009/10/03 01:46:39 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.240 2009/10/26 16:41:35 cegger Exp $"); #include "opt_inet.h" @@ -172,8 +172,10 @@ static void sysctl_sndq_setup(struct sysctllog **, const char *, struct ifaltq *); +#if defined(INET) || defined(INET6) static void sysctl_net_ifq_setup(struct sysctllog **, int, const char *, int, const char *, int, struct ifqueue *); +#endif static int if_listener_cb(kauth_cred_t cred, kauth_action_t action, void *cookie,