bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix missing include header guard.


From: guy fleury iteriteka
Subject: [PATCH] fix missing include header guard.
Date: Sun, 22 Nov 2020 09:41:55 +0200

* i386/i386/pit.h: Add header guard angaist multiple inclusion.
---
 i386/i386/pit.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/i386/i386/pit.h b/i386/i386/pit.h
index 6b682280..e004c37c 100644
--- a/i386/i386/pit.h
+++ b/i386/i386/pit.h
@@ -45,6 +45,9 @@ NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
CONNECTION
 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
+#ifndef        _I386_PIT_H_
+#define        _I386_PIT_H_
+
 #if    defined(AT386) || defined(ATX86_64)
 /* Definitions for 8254 Programmable Interrupt Timer ports on AT 386 */
 #define PITCTR0_PORT   0x40            /* counter 0 port */
@@ -79,3 +82,5 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #endif /* AT386 */
 
 extern void clkstart(void);
+
+#endif /* _I386_PIT_H_ */
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]