aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-05-22 16:12:19 +0000
committerMark Johnston <markj@FreeBSD.org>2021-05-22 16:12:19 +0000
commit5c7ef43e9625528da93b308a97aab0858f7eaec6 (patch)
tree7b311a153ba5aae91145c83bea77243d6af17c0f
parente4b16f2fb18bcb6ed2592a7b6983d5df04813a70 (diff)
downloadsrc-5c7ef43e9625528da93b308a97aab0858f7eaec6.tar.gz
src-5c7ef43e9625528da93b308a97aab0858f7eaec6.zip
ktls.h: Guard includes behind _KERNEL
These are not needed when including ktls.h to get sockopt definitions. Reviewed by: gallatin, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30392
-rw-r--r--sys/sys/ktls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ktls.h b/sys/sys/ktls.h
index 3c43a23af04f..bf1e66fab027 100644
--- a/sys/sys/ktls.h
+++ b/sys/sys/ktls.h
@@ -29,8 +29,10 @@
#ifndef _SYS_KTLS_H_
#define _SYS_KTLS_H_
+#ifdef _KERNEL
#include <sys/refcount.h>
#include <sys/_task.h>
+#endif
struct tls_record_layer {
uint8_t tls_type;