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:
Daniel P. Berrangé 2020-08-07 13:51:16 +01:00
parent 11188d5a19
commit 4b696beee3

View File

@ -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]);