Thomas Heijligen | 4d700b9 | 2021-11-05 12:28:06 +0100 | [diff] [blame^] | 1 | /* 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 | ||||
8 | struct pci_access *pacc; | ||||
9 | struct pci_dev *dev = {0}; | ||||
10 | int 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 | } |