git: 5f7ceb78f58f - stable/13 - ktls.h: Guard includes behind _KERNEL
Mark Johnston
markj at FreeBSD.org
Mon May 31 00:45:33 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5f7ceb78f58f5de60a40b4d31102db3e67414cdb
commit 5f7ceb78f58f5de60a40b4d31102db3e67414cdb
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-05-22 16:12:19 +0000
Commit: Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-05-31 00:45:19 +0000
ktls.h: Guard includes behind _KERNEL
These are not needed when including ktls.h to get sockopt definitions.
Reviewed by: gallatin, jhb
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 5c7ef43e9625528da93b308a97aab0858f7eaec6)
---
sys/sys/ktls.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/ktls.h b/sys/sys/ktls.h
index 8d591888466c..2f15cce3fc55 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;
More information about the dev-commits-src-branches
mailing list