bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 1/2] i386/i386at: add ifndefs


From: Marin Ramesa
Subject: [PATCH 1/2] i386/i386at: add ifndefs
Date: Thu, 14 Nov 2013 21:04:04 +0100

* i386/i386at/kd_queue.h: Add ifndef. 
* i386/i386at/kdsoft.h: Likewise.   
* i386/i386at/lprreg.h: Likewise.  
* i386/i386at/rtc.h: Likewise.

---
 i386/i386at/kd_queue.h | 5 +++++
 i386/i386at/kdsoft.h   | 5 +++++
 i386/i386at/lprreg.h   | 5 +++++
 i386/i386at/rtc.h      | 5 +++++
 4 files changed, 20 insertions(+)

diff --git a/i386/i386at/kd_queue.h b/i386/i386at/kd_queue.h
index c976acf..bd3fc7b 100644
--- a/i386/i386at/kd_queue.h
+++ b/i386/i386at/kd_queue.h
@@ -64,6 +64,9 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  * /dev/mouse.
  */
 
+#ifndef _KD_QUEUE_H_
+#define _KD_QUEUE_H_
+
 #include <mach/std_types.h>
 #include <i386at/kd.h>
 
@@ -79,3 +82,5 @@ extern void kdq_reset(kd_event_queue *);
 extern boolean_t kdq_empty(kd_event_queue *);
 extern boolean_t kdq_full(kd_event_queue *);
 extern kd_event *kdq_get(kd_event_queue *);
+
+#endif /* _KD_QUEUE_H_ */
diff --git a/i386/i386at/kdsoft.h b/i386/i386at/kdsoft.h
index 96e2df8..297c57b 100644
--- a/i386/i386at/kdsoft.h
+++ b/i386/i386at/kdsoft.h
@@ -57,6 +57,9 @@ NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN 
CONNECTION
 WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
+#ifndef _KDSOFT_H
+#define _KDSOFT_H_
+
 /*
  * Globals used for both character-based controllers and bitmap-based
  * controllers.
@@ -203,3 +206,5 @@ extern short        xstart, ystart;
 extern short   char_byte_width;        /* char_width/8 */
 extern short   fb_byte_width;          /* fb_width/8 */
 extern short   font_byte_width;        /* num bytes in 1 scan line of font */
+
+#endif /* _KDSOFT_H_ */
diff --git a/i386/i386at/lprreg.h b/i386/i386at/lprreg.h
index c6fbed4..648e4ea 100644
--- a/i386/i386at/lprreg.h
+++ b/i386/i386at/lprreg.h
@@ -27,7 +27,12 @@
  *     Parallel port printer driver v1.0
  *     All rights reserved.
  */ 
+
+#ifndef _LPRREG_H_
+#define _LPRREG_H_
   
 #define DATA(addr)     (addr + 0)
 #define STATUS(addr)   (addr + 1)
 #define INTR_ENAB(addr)        (addr + 2)
+
+#endif /* _LPRREG_H_ */
diff --git a/i386/i386at/rtc.h b/i386/i386at/rtc.h
index ced39b9..64a528a 100644
--- a/i386/i386at/rtc.h
+++ b/i386/i386at/rtc.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 _RTC_H_
+#define _RTC_H_
+
 #define RTC_ADDR       0x70    /* I/O port address for register select */
 #define RTC_DATA       0x71    /* I/O port address for data read/write */
 
@@ -136,3 +139,5 @@ struct rtc_st {
 
 extern int readtodc(u_int *tp);
 extern int writetodc(void);
+
+#endif /* _RTC_H_ */
-- 
1.8.1.4




reply via email to

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