git: 2595d78f3df2 - main - sys/ck.h: Add an include guard

Kevin Bowling kbowling at FreeBSD.org
Sun Mar 21 18:56:03 UTC 2021


The branch main has been updated by kbowling (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=2595d78f3df2ca389aae259a291f93eb06ecad43

commit 2595d78f3df2ca389aae259a291f93eb06ecad43
Author:     Kevin Bowling <kbowling at FreeBSD.org>
AuthorDate: 2021-03-21 18:50:30 +0000
Commit:     Kevin Bowling <kbowling at FreeBSD.org>
CommitDate: 2021-03-21 18:55:52 +0000

    sys/ck.h: Add an include guard
    
    Approved by:    cognet
    MFC after:      1 week
    Sponsored by:   BBOX.io
    Differential Revision:  https://reviews.freebsd.org/D29357
---
 sys/sys/ck.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/sys/ck.h b/sys/sys/ck.h
index 3bfce70c8d2c..b04fe67b476d 100644
--- a/sys/sys/ck.h
+++ b/sys/sys/ck.h
@@ -1,6 +1,9 @@
 /*
  * $FreeBSD$
  */
+#ifndef _SYS_CK_H_
+#define _SYS_CK_H_
+
 #ifdef _KERNEL
 #include <ck_queue.h>
 #include <ck_epoch.h>
@@ -11,3 +14,5 @@
 #define CK_LIST_HEAD LIST_HEAD
 #define CK_LIST_ENTRY LIST_ENTRY
 #endif
+
+#endif /* !_SYS_CK_H_ */


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