提交 71732f0f 编写于 作者: M Martin Kletzander

virhostcpu: Make only defined symbols available

That way you get the error from the compiler before the linker.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 9c5ac84d
......@@ -57,10 +57,13 @@ int virHostCPUStatsAssign(virNodeCPUStatsPtr param,
const char *name,
unsigned long long value);
# ifdef __linux__
int virHostCPUGetSocket(unsigned int cpu, unsigned int *socket);
int virHostCPUGetCore(unsigned int cpu, unsigned int *core);
int virHostCPUGetOnline(unsigned int cpu, bool *online);
virBitmapPtr virHostCPUGetSiblingsList(unsigned int cpu);
# endif
int virHostCPUGetOnline(unsigned int cpu, bool *online);
#endif /* __VIR_HOSTCPU_H__*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册