summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_time.c1
-rw-r--r--sys/sys/syscallsubr.h2
-rw-r--r--sys/sys/time.h4
3 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index e08a765e4c05..4e6fe7f5ff11 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include <sys/signalvar.h>
#include <sys/kernel.h>
#include <sys/mac.h>
+#include <sys/syscallsubr.h>
#include <sys/sysent.h>
#include <sys/proc.h>
#include <sys/time.h>
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index d3bb9772f95a..87d6b014a6e5 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -70,6 +70,8 @@ int kern_mkfifo(struct thread *td, char *path, enum uio_seg pathseg,
int mode);
int kern_mknod(struct thread *td, char *path, enum uio_seg pathseg,
int mode, int dev);
+int kern_nanosleep(struct thread *td, struct timespec *rqt,
+ struct timespec *rmt);
int kern_open(struct thread *td, char *path, enum uio_seg pathseg,
int flags, int mode);
int kern_ptrace(struct thread *td, int req, pid_t pid, void *addr,
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 6e83f5f2e29b..5371838dd5a0 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -297,10 +297,6 @@ int ratecheck(struct timeval *, const struct timeval *);
void timevaladd(struct timeval *t1, const struct timeval *t2);
void timevalsub(struct timeval *t1, const struct timeval *t2);
int tvtohz(struct timeval *tv);
-
-struct thread;
-int kern_nanosleep(struct thread *td, struct timespec *rqt,
- struct timespec *rmt);
#else /* !_KERNEL */
#include <time.h>