mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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 <pkrempa@redhat.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
17d88dc10a
commit
a5dc60012c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user