diff options
Diffstat (limited to 'hwaccess.h')
-rw-r--r-- | hwaccess.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h index 91366a662..53e908a81 100644 --- a/hwaccess.h +++ b/hwaccess.h @@ -31,7 +31,14 @@ #endif #if NEED_PCI == 1 +/* + * libpci headers use the variable name "index" which triggers shadowing + * warnings on systems which have the index() function in a default #include + * or as builtin. + */ +#define index shadow_workaround_index #include <pci/pci.h> +#undef index #endif #if defined (__i386__) || defined (__x86_64__) |