Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 2008 11:54:56 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184681 - head/sys/net
Message-ID:  <200811051154.mA5Bsurw026117@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Nov  5 11:54:56 2008
New Revision: 184681
URL: http://svn.freebsd.org/changeset/base/184681

Log:
  Hide the IPv4 init function if the kernel is compiled without INET.
  It is not used in that case and would not compile.

Modified:
  head/sys/net/radix_mpath.c

Modified: head/sys/net/radix_mpath.c
==============================================================================
--- head/sys/net/radix_mpath.c	Wed Nov  5 11:43:01 2008	(r184680)
+++ head/sys/net/radix_mpath.c	Wed Nov  5 11:54:56 2008	(r184681)
@@ -36,6 +36,7 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+#include "opt_inet.h"
 #include "opt_inet6.h"
 
 #include <sys/param.h>
@@ -308,6 +309,7 @@ rtalloc_mpath_fib(struct route *ro, u_in
 extern int	in6_inithead(void **head, int off);
 extern int	in_inithead(void **head, int off);
 
+#ifdef INET
 int
 rn4_mpath_inithead(void **head, int off)
 {
@@ -321,6 +323,7 @@ rn4_mpath_inithead(void **head, int off)
 	} else
 		return 0;
 }
+#endif
 
 #ifdef INET6
 int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811051154.mA5Bsurw026117>