Skip to content

Commit

Permalink
Guard header file pci.h
Browse files Browse the repository at this point in the history
Compilation on Ubuntu fails without this.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
  • Loading branch information
KevinOConnor committed Mar 21, 2008
1 parent 7913f9d commit faa8b6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pci.h
@@ -1,3 +1,6 @@
#ifndef __PCI_H
#define __PCI_H

#include "types.h" // u32

typedef struct PCIDevice {
Expand All @@ -11,3 +14,5 @@ void pci_config_writeb(PCIDevice *d, u32 addr, u8 val);
u32 pci_config_readl(PCIDevice *d, u32 addr);
u16 pci_config_readw(PCIDevice *d, u32 addr);
u8 pci_config_readb(PCIDevice *d, u32 addr);

#endif

0 comments on commit faa8b6f

Please sign in to comment.