Remove an duplicate definition of nhops_dump_sysctl()

One of the source files included both nhop.h and shared.h, leading to this
clashing.

Tested with: mips-gcc cross toolchain
This commit is contained in:
Adrian Chadd 2020-04-16 23:28:47 +00:00
parent a620e53d52
commit 2538a4b1b4
2 changed files with 1 additions and 2 deletions

View File

@ -177,8 +177,6 @@ uint32_t nhop_get_idx(const struct nhop_object *nh);
enum nhop_type nhop_get_type(const struct nhop_object *nh); enum nhop_type nhop_get_type(const struct nhop_object *nh);
int nhop_get_rtflags(const struct nhop_object *nh); int nhop_get_rtflags(const struct nhop_object *nh);
int nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w);
#endif /* _KERNEL */ #endif /* _KERNEL */
/* Kernel <> userland structures */ /* Kernel <> userland structures */

View File

@ -78,6 +78,7 @@
#include <netinet6/scope6_var.h> #include <netinet6/scope6_var.h>
#endif #endif
#include <net/route/nhop.h> #include <net/route/nhop.h>
#include <net/route/shared.h>
#ifdef COMPAT_FREEBSD32 #ifdef COMPAT_FREEBSD32
#include <sys/mount.h> #include <sys/mount.h>