From: Andrea Bolognani Date: Thu, 15 Nov 2018 14:50:21 +0000 (+0100) Subject: util: Fix virpci compilation on non-Linux X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a5dc60012c311b1f11f09cc5c5f394e20eb0917e;p=libvirt.git util: Fix virpci compilation on non-Linux We were mistakenly skipping virZPCIDeviceAddressIsEmpty() and virZPCIDeviceAddressIsValid() when compiling on non-Linux, which unsurprisingly ended up causing linking failures later in the build process. Clue-stick-by: Peter Krempa Signed-off-by: Andrea Bolognani --- diff --git a/src/util/virpci.c b/src/util/virpci.c index efa2d1662a..66aae60baa 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -2561,7 +2561,6 @@ virPCIDeviceAddressParse(char *address, return ret; } -#ifdef __linux__ bool virZPCIDeviceAddressIsValid(virZPCIDeviceAddressPtr zpci) @@ -2588,6 +2587,7 @@ virZPCIDeviceAddressIsEmpty(const virZPCIDeviceAddress *addr) return !(addr->uid || addr->fid); } +#ifdef __linux__ /* * returns true if equal