projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ca540d
)
qemu-thread-posix: Fix build against older glibc version
author
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 11 Mar 2014 15:49:23 +0000
(16:49 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Tue, 11 Mar 2014 18:19:21 +0000
(18:19 +0000)
pthread_setname_np was introduced with 2.12.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
util/qemu-thread-posix.c
patch
|
blob
|
history
diff --git
a/util/qemu-thread-posix.c
b/util/qemu-thread-posix.c
index 45113b464d7a9ea876e6183de8ed6bd4ce5d5b7e..960d7f5d4280b50f95cedfef789474cc98fd2052 100644
(file)
--- a/
util/qemu-thread-posix.c
+++ b/
util/qemu-thread-posix.c
@@
-420,7
+420,7
@@
void qemu_thread_create(QemuThread *thread, const char *name,
if (err)
error_exit(err, __func__);
-#if
def _GNU_SOURCE
+#if
defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 12))
if (name_threads) {
pthread_setname_np(thread->thread, name);
}