提交 a5dc6001 编写于 作者: A Andrea Bolognani

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: NPeter Krempa <pkrempa@redhat.com>
Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
上级 17d88dc1
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册