summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-04-13 03:52:25 +0000
committerguenther <guenther@openbsd.org>2017-04-13 03:52:25 +0000
commitf5d56f6d1abf3988ecad6e5bcc0d9e60de25e475 (patch)
treeac9e473e35f69727b04f30b9dc4b858b32ab61f9 /sys/kern/kern_prot.c
parentInspired by recent dhcrelay changes, bring in stricter CFLAGS! (diff)
downloadwireguard-openbsd-f5d56f6d1abf3988ecad6e5bcc0d9e60de25e475.tar.xz
wireguard-openbsd-f5d56f6d1abf3988ecad6e5bcc0d9e60de25e475.zip
Provide mips64 with kernel-facing TCB_{GET,SET} macros that store it
in struct mdproc. With that, all archs have those and the __HAVE_MD_TCB macro can be unifdef'ed as always defined. ok kettenis@ visa@ jsing@
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 9fae1d747c6..7907f0a5830 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_prot.c,v 1.67 2016/11/07 00:26:32 guenther Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.68 2017/04/13 03:52:25 guenther Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
@@ -51,10 +51,7 @@
#include <sys/mount.h>
#include <sys/syscallargs.h>
-
-#ifdef __HAVE_MD_TCB
-# include <machine/tcb.h>
-#endif
+#include <machine/tcb.h>
inline void
crset(struct ucred *newcr, const struct ucred *cr)