sscanf doesn't support the L modifier on Windows and gnulib has no replacement for the scanf functions. Just replace the function with a stub on Windows, because it's not used on the libvirt client side. --- src/util/pci.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/util/pci.c b/src/util/pci.c index 99ec22a..87cdb78 100644 --- a/src/util/pci.c +++ b/src/util/pci.c @@ -908,6 +908,9 @@ pciReAttachDevice(pciDevice *dev) * Returns 0 if we are clear to continue, and 1 if the hypervisor is still * holding onto the resource. */ + +#ifndef WIN32 + int pciWaitForDeviceCleanup(pciDevice *dev, const char *matcher) { @@ -976,6 +979,17 @@ pciWaitForDeviceCleanup(pciDevice *dev, const char *matcher) return ret; } +#else /* !WIN32 */ + +int +pciWaitForDeviceCleanup(pciDevice *dev ATTRIBUTE_UNUSED, + const char *matcher ATTRIBUTE_UNUSED) +{ + return 0; +} + +#endif /* !WIN32 */ + static char * pciReadDeviceID(pciDevice *dev, const char *id_name) { -- 1.6.3.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list