diff options
Diffstat (limited to 'include/platform/pci.h')
-rw-r--r-- | include/platform/pci.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/platform/pci.h b/include/platform/pci.h index 93bc163b..a0324f88 100644 --- a/include/platform/pci.h +++ b/include/platform/pci.h @@ -14,12 +14,16 @@ */ #define index shadow_workaround_index -#if defined (__NetBSD__) -#include <pci.h> +/* Some NetBSDs are using an other include path for pci.h + * e.g. NetBSD 9.0 on sparc64 pciutils-3.7.0nb2. + * Other NetBSD platforms and versions uses the default path under pci/pci.h + */ +#if __has_include(<pciutils/pci.h>) +#include <pciutils/pci.h> #else #include <pci/pci.h> #endif #undef index -#endif /* __PLATFORM_PCI_H__ */
\ No newline at end of file +#endif /* __PLATFORM_PCI_H__ */ |