git: 5c7ef43e9625 - main - ktls.h: Guard includes behind _KERNEL

Mark Johnston markj at FreeBSD.org
Sat May 22 16:17:51 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=5c7ef43e9625528da93b308a97aab0858f7eaec6

commit 5c7ef43e9625528da93b308a97aab0858f7eaec6
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-22 16:12:19 +0000

    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
---
 sys/sys/ktls.h | 2 ++
 1 file changed, 2 insertions(+)

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;


More information about the dev-commits-src-main mailing list