]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Fix virpci compilation on non-Linux
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Nov 2018 14:50:21 +0000 (15:50 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 15 Nov 2018 14:57:18 +0000 (15:57 +0100)
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 <pkrempa@redhat.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/util/virpci.c

index efa2d1662ab2120013fc29ba538630892dd9c336..66aae60baa23c44888d8b0492eabfd56d31c1112 100644 (file)
@@ -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