From 09d22af194eddf1032532ba2d980e208d156bde5 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Thu, 8 Mar 2012 14:19:36 -0500 Subject: [PATCH] util: add stub pciConfigAddressToSysfsFile for non-linux platforms Absence of this stub function caused a build failure on mingw32. --- src/util/pci.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util/pci.c b/src/util/pci.c index a6212f291c..e7bfb920e2 100644 --- a/src/util/pci.c +++ b/src/util/pci.c @@ -2208,6 +2208,15 @@ pciGetVirtualFunctionIndex(const char *pf_sysfs_device_link ATTRIBUTE_UNUSED, } +int +pciConfigAddressToSysfsFile(struct pci_config_address *dev ATTRIBUTE_UNUSED, + char **pci_sysfs_device_link ATTRIBUTE_UNUSED) +{ + pciReportError(VIR_ERR_INTERNAL_ERROR, _("pciConfigAddressToSysfsFile is not " + "supported on non-linux platforms")); + return -1; +} + int pciDeviceNetName(char *device_link_sysfs_path ATTRIBUTE_UNUSED, char **netname ATTRIBUTE_UNUSED) -- GitLab