From: Daniel P. Berrangé Date: Fri, 7 Aug 2020 12:51:16 +0000 (+0100) Subject: qemu: remove use of gettid() syscall X-Git-Tag: v6.7.0-rc1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b696beee31fb927b8f3d10df8145486e089b06c;p=thirdparty%2Flibvirt.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é --- diff --git a/src/qemu/qemu_shim.c b/src/qemu/qemu_shim.c index 4c06f15779..ef0ba086b5 100644 --- a/src/qemu/qemu_shim.c +++ b/src/qemu/qemu_shim.c @@ -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]);