use patched pciutils. Index: hwaccess.h --- hwaccess.h.orig +++ hwaccess.h @@ -30,7 +30,9 @@ */ #define index shadow_workaround_index -#if !defined (__NetBSD__) +#ifdef __OpenBSD__ +#include "pciutils/lib/pci.h" +#elif !defined (__NetBSD__) #include #else #include