[rtems-libbsd commit] C++ compatibility for kernel space <sys/sysctl.h>

Sebastian Huber sebh at rtems.org
Mon Sep 23 09:01:39 UTC 2019


Module:    rtems-libbsd
Branch:    5-freebsd-12
Commit:    25e52657199b68001bbb72c0d4bd85b36809ab04
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=25e52657199b68001bbb72c0d4bd85b36809ab04

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jul 18 10:21:21 2019 +0200

C++ compatibility for kernel space <sys/sysctl.h>

---

 freebsd/sys/sys/sysctl.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/freebsd/sys/sys/sysctl.h b/freebsd/sys/sys/sysctl.h
index 3ad6647..b2ae7f9 100644
--- a/freebsd/sys/sys/sysctl.h
+++ b/freebsd/sys/sys/sysctl.h
@@ -1130,9 +1130,11 @@ int	kernel_sysctlbyname(struct thread *td, char *name, void *old,
 	    size_t *oldlenp, const void *newp, size_t newlen, size_t *retval,
 #endif /* __rtems__ */
 	    int flags);
+#ifndef __rtems__
 int	userland_sysctl(struct thread *td, int *name, u_int namelen, void *old,
 	    size_t *oldlenp, int inkernel, void *new, size_t newlen,
 	    size_t *retval, int flags);
+#endif /* __rtems__ */
 int	sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid,
 	    int *nindx, struct sysctl_req *req);
 void	sysctl_wlock(void);




More information about the vc mailing list