pci: Put back header gardian in header files
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 4 Jul 2009 07:19:09 +0000 (15:19 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 8 Jul 2009 10:50:38 +0000 (18:50 +0800)
sys/bus/pci/pcireg.h
sys/bus/pci/pcivar.h

index d7f9d16..15d4325 100644 (file)
@@ -30,7 +30,9 @@
 #ifndef _PCIREG_H_
 #define _PCIREG_H_
 
+#ifndef _SYS_TYPES_H_
 #include <sys/types.h>
+#endif
 
 typedef u_int16_t pci_vendor_id_t;
 typedef u_int16_t pci_product_id_t;
index 9687528..89192b8 100644 (file)
 #ifndef _PCIVAR_H_
 #define        _PCIVAR_H_
 
+#ifndef _SYS_QUEUE_H_
 #include <sys/queue.h>
+#endif
+
 #include <bus/pci/pcireg.h>
+
 extern const char *pcib_owner;  /* arbitrate who owns the pci device arch */
 
 /* some PCI bus constants */