Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net buildfix: only declare sysctl_net_ifq_setup() if INE...



details:   https://anonhg.NetBSD.org/src/rev/bea56f05e283
branches:  trunk
changeset: 748536:bea56f05e283
user:      cegger <cegger%NetBSD.org@localhost>
date:      Mon Oct 26 16:41:35 2009 +0000

description:
buildfix: only declare sysctl_net_ifq_setup() if INET or INET6 is defined

diffstat:

 sys/net/if.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 86f2134a99e1 -r bea56f05e283 sys/net/if.c
--- a/sys/net/if.c      Mon Oct 26 15:32:38 2009 +0000
+++ b/sys/net/if.c      Mon Oct 26 16:41:35 2009 +0000
@@ -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,



Home | Main Index | Thread Index | Old Index