summaryrefslogtreecommitdiff
path: root/src/i830_bios.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-06 16:59:16 -0700
committerEric Anholt <eric@anholt.net>2008-10-06 17:00:29 -0700
commit3621183cf4acef23414e8d69c34b1e587f52ec67 (patch)
tree573314fa7855d03f8b483d512de3e23579f73d41 /src/i830_bios.h
parent080d36648f92d3b9a559e5458687fa82afab411f (diff)
Fix bios_reader build against old servers.
The server's pci_device structure ends up conflicting with libpciaccess's. Just don't include the server structure for this non-server tool.
Diffstat (limited to 'src/i830_bios.h')
-rw-r--r--src/i830_bios.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i830_bios.h b/src/i830_bios.h
index 0a1f4ba6..39706ac6 100644
--- a/src/i830_bios.h
+++ b/src/i830_bios.h
@@ -29,7 +29,9 @@
#define _I830_BIOS_H_
#include <stdint.h>
+#ifndef REG_DUMPER
#include <xf86str.h>
+#endif
struct vbt_header {
char signature[20]; /**< Always starts with 'VBT$' */
@@ -393,7 +395,9 @@ struct vch_bdb_22 {
struct vch_panel_data panels[16];
} __attribute__((packed));
+#ifndef REG_DUMPER
int i830_bios_init(ScrnInfoPtr pScrn);
+#endif
/*
* Driver<->VBIOS interaction occurs through scratch bits in