1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From 57ae8ac2df40e6e824e89b590d254156c092ab56 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Sat, 19 Dec 2009 19:54:33 +0200
Subject: [PATCH] ttyload.h: Add defines to include header only once
Forwarded: https://github.com/lindes/ttyload/pull/7
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
ttyload.h | 4 ++++
1 file changed, 4 insertions(+)
--- a/ttyload.h
+++ b/ttyload.h
@@ -8,6 +8,8 @@
*
*/
+#ifndef TTYLOAD_H_IDENT
+
#include <time.h> /* 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 */
|