From cf3469634348934adfb44dbc3624396c90e9c0b8 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Thu, 20 Oct 2016 16:46:18 +0300 Subject: [PATCH] ttyload.h: Add #ifndef rule to include header only once Signed-off-by: Jari Aalto --- ttyload.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ttyload.h b/ttyload.h index 5f782bf..f2c2951 100644 --- a/ttyload.h +++ b/ttyload.h @@ -8,6 +8,8 @@ * */ +#ifndef TTYLOAD_H_IDENT + #include /* because we use time_t inside this file */ #define MIN(a,b) (((a)<(b))?(a):(b)) @@ -39,3 +41,5 @@ typedef struct clock_info { /* functions in arch-specific files: */ extern void getload(load_list *); extern void gettermsize(); + +#endif /* ifndef TTYLOAD_H_IDENT */