mirror of https://gitee.com/openkylin/libvirt.git
qemu: remove use of gettid() syscall
This is not expose in most historical versions of glibc, nor non-glibc impls. We must use our wrapper API instead. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
11188d5a19
commit
4b696beee3
|
@ -176,8 +176,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (verbose)
|
||||
g_printerr("%s: %lld: initializing libvirt %d\n",
|
||||
argv[0], deltams(), gettid());
|
||||
g_printerr("%s: %lld: initializing libvirt %llu\n",
|
||||
argv[0], deltams(), virThreadSelfID());
|
||||
|
||||
if (virInitialize() < 0) {
|
||||
g_printerr("%s: cannot initialize libvirt\n", argv[0]);
|
||||
|
|
Loading…
Reference in New Issue