diff --git a/freebsd/sys/sys/sysctl.h b/freebsd/sys/sys/sysctl.h index 35c0e984..16d4d2db 100644 --- a/freebsd/sys/sys/sysctl.h +++ b/freebsd/sys/sys/sysctl.h @@ -747,9 +747,7 @@ void sysctl_lock(void); void sysctl_unlock(void); int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len); -#ifndef __rtems__ #else /* !_KERNEL */ -#endif /* __rtems__ */ #include __BEGIN_DECLS diff --git a/rtemsbsd/include/machine/rtems-bsd-syscall-api.h b/rtemsbsd/include/machine/rtems-bsd-syscall-api.h index 97790212..d96f1793 100644 --- a/rtemsbsd/include/machine/rtems-bsd-syscall-api.h +++ b/rtemsbsd/include/machine/rtems-bsd-syscall-api.h @@ -47,6 +47,7 @@ #include #include #include +#include __BEGIN_DECLS @@ -83,6 +84,12 @@ int shutdown(int, int); int socket(int, int, int); +int sysctl(int *, u_int, void *, size_t *, void *, size_t); + +int sysctlbyname(const char *, void *, size_t *, void *, size_t); + +int sysctlnametomib(const char *, int *, size_t *); + __END_DECLS #endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ */ diff --git a/rtemsbsd/rtems/rtems-bsd-sysctl.c b/rtemsbsd/rtems/rtems-bsd-sysctl.c index bd9f31f6..7fbb5398 100644 --- a/rtemsbsd/rtems/rtems-bsd-sysctl.c +++ b/rtemsbsd/rtems/rtems-bsd-sysctl.c @@ -38,6 +38,7 @@ */ #include +#include #include #include diff --git a/rtemsbsd/rtems/rtems-bsd-sysctlbyname.c b/rtemsbsd/rtems/rtems-bsd-sysctlbyname.c index a0ba592b..37a4f8df 100644 --- a/rtemsbsd/rtems/rtems-bsd-sysctlbyname.c +++ b/rtemsbsd/rtems/rtems-bsd-sysctlbyname.c @@ -19,6 +19,7 @@ */ #include +#include #include __FBSDID("$FreeBSD$"); diff --git a/rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c b/rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c index 6f65fa5c..496cafae 100644 --- a/rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c +++ b/rtemsbsd/rtems/rtems-bsd-sysctlnametomib.c @@ -35,6 +35,7 @@ */ #include +#include #include __FBSDID("$FreeBSD$");