X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=meson.build;h=6cb2b1a42f8ad88ce284dc2e6c6855be4fbe79d6;hb=b11728dc3ae67ddedf34b7a4f318170e7092803c;hp=6a139e7085d434eb4167538b0235e8ac94fea8bb;hpb=dbd672c87f19949bb62bfb1fb3a97b9729fd7560;p=mirror_qemu.git diff --git a/meson.build b/meson.build index 6a139e7085..6cb2b1a42f 100644 --- a/meson.build +++ b/meson.build @@ -2129,6 +2129,18 @@ config_host_data.set('CONFIG_PTHREAD_SETNAME_NP_WO_TID', cc.links(gnu_source_pre pthread_create(&thread, 0, f, 0); return 0; }''', dependencies: threads)) +config_host_data.set('CONFIG_PTHREAD_SET_NAME_NP', cc.links(gnu_source_prefix + ''' + #include + #include + + static void *f(void *p) { return NULL; } + int main(void) + { + pthread_t thread; + pthread_create(&thread, 0, f, 0); + pthread_set_name_np(thread, "QEMU"); + return 0; + }''', dependencies: threads)) config_host_data.set('CONFIG_PTHREAD_CONDATTR_SETCLOCK', cc.links(gnu_source_prefix + ''' #include #include