blob: 35739c1900e5068b451a7464edc3fd735a1de111 [file] [log] [blame]
Thomas Heijligen4d700b92021-11-05 12:28:06 +01001/* Avoid a failing test due to libpci header symbol shadowing breakage */
2#define index shadow_workaround_index
3#if defined (PCIUTILS_PCI_H)
4#include <pciutils/pci.h>
5#else
6#include <pci/pci.h>
7#endif
8struct pci_access *pacc;
9struct pci_dev *dev = {0};
10int main(int argc, char **argv)
11{
12 (void) argc;
13 (void) argv;
14 pacc = pci_alloc();
15 dev = pci_get_dev(pacc, dev->bus, dev->dev, 1);
16 return 0;
17}