diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2013-06-29 20:49:52 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-06 09:46:03 -0700 |
commit | 1d364cb2f5b5cb1b18601735f42bada7a521be19 (patch) | |
tree | 10a24507f435e909f5d7608b176d98134acf4a84 /src | |
parent | 7f388e466bd7fbb7f9eba531e494e7efbd3a65dc (diff) | |
download | libpciaccess-1d364cb2f5b5cb1b18601735f42bada7a521be19.tar.gz libpciaccess-1d364cb2f5b5cb1b18601735f42bada7a521be19.tar.bz2 libpciaccess-1d364cb2f5b5cb1b18601735f42bada7a521be19.zip |
Enable boot_vga support only if WSDISPLAYIO_GET_BUSID is defined.
Fixes build on NetBSD-5.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/netbsd_pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/netbsd_pci.c b/src/netbsd_pci.c index 3566d7b..c9bd052 100644 --- a/src/netbsd_pci.c +++ b/src/netbsd_pci.c @@ -248,6 +248,7 @@ pci_device_netbsd_write(struct pci_device *dev, const void *data, return 0; } +#if defined(WSDISPLAYIO_GET_BUSID) static int pci_device_netbsd_boot_vga(struct pci_device *dev) { @@ -284,6 +285,7 @@ pci_device_netbsd_boot_vga(struct pci_device *dev) return 1; } +#endif static void pci_system_netbsd_destroy(void) @@ -518,7 +520,11 @@ static const struct pci_system_methods netbsd_pci_methods = { .read = pci_device_netbsd_read, .write = pci_device_netbsd_write, .fill_capabilities = pci_fill_capabilities_generic, +#if defined(WSDISPLAYIO_GET_BUSID) .boot_vga = pci_device_netbsd_boot_vga, +#else + .boot_vga = NULL, +#endif }; int |