Index: lib/libc/gen/sysctlgetmibinfo.c =================================================================== RCS file: /cvsroot/src/lib/libc/gen/sysctlgetmibinfo.c,v retrieving revision 1.13 diff -u -r1.13 sysctlgetmibinfo.c --- lib/libc/gen/sysctlgetmibinfo.c 30 Sep 2016 06:22:21 -0000 1.13 +++ lib/libc/gen/sysctlgetmibinfo.c 27 Aug 2019 14:37:43 -0000 @@ -386,16 +386,16 @@ * the mib while parsing, and you should try again. in the case of an * invalid node name, cname will be set to contain the offending name. */ -#ifdef _REENTRANT +#if defined(_REENTRANT) && !defined(RUMP_ACTION) static mutex_t sysctl_mutex = MUTEX_INITIALIZER; static int sysctlgetmibinfo_unlocked(const char *, int *, u_int *, char *, size_t *, struct sysctlnode **, int); -#endif /* __REENTRANT */ +#endif /* __REENTRANT && !RUMP_ACTION */ int sysctlgetmibinfo(const char *gname, int *iname, u_int *namelenp, char *cname, size_t *csz, struct sysctlnode **rnode, int v) -#ifdef _REENTRANT +#if defined(_REENTRANT) && !defined(RUMP_ACTION) { int rc; @@ -411,7 +411,7 @@ sysctlgetmibinfo_unlocked(const char *gname, int *iname, u_int *namelenp, char *cname, size_t *csz, struct sysctlnode **rnode, int v) -#endif /* _REENTRANT */ +#endif /* _REENTRANT && !RUMP_ACTION */ { struct sysctlnode *pnode, *node; int name[CTL_MAXNAME], n, haven;