Add header guard around pic.h
authorKevin O'Connor <kevin@koconnor.net>
Wed, 18 Jun 2008 11:45:38 +0000 (07:45 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 18 Jun 2008 11:45:38 +0000 (07:45 -0400)
This fixes compiling with AVOIDCOMBINE=1

src/pic.h

index 0eb70ee86b0d4f23c5a888167f41fdc6bb8c1135..dc151a280dd1b8bee1f18aa79f20e34c152f690f 100644 (file)
--- a/src/pic.h
+++ b/src/pic.h
@@ -4,6 +4,8 @@
 // Copyright (C) 2002  MandrakeSoft S.A.
 //
 // This file may be distributed under the terms of the GNU GPLv3 license.
+#ifndef __PIC_H
+#define __PIC_H
 
 #include "ioport.h" // PORT_PIC*
 #include "util.h" // dprintf
@@ -75,3 +77,5 @@ pic_setup()
     outb(~PIC1_IRQ2, PORT_PIC1_DATA);
     outb(~0, PORT_PIC2_DATA);
 }
+
+#endif // pic.h