projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix pthread_setname_np build error
[deliverable/binutils-gdb.git]
/
gdb
/
gdbsupport
/
thread-pool.c
diff --git
a/gdb/gdbsupport/thread-pool.c
b/gdb/gdbsupport/thread-pool.c
index cd548956951109f83161f8a5fca9a8acae6e2cec..a8c5fb774d9459e61a587aa70b5f11210fd5011e 100644
(file)
--- a/
gdb/gdbsupport/thread-pool.c
+++ b/
gdb/gdbsupport/thread-pool.c
@@
-49,8
+49,10
@@
set_thread_name (int (*set_name) (pthread_t, const char *), const char *name)
set_name (pthread_self (), name);
}
set_name (pthread_self (), name);
}
+/* The macOS man page says that pthread_setname_np returns "void", but
+ the headers actually declare it returning "int". */
ATTRIBUTE_UNUSED static void
ATTRIBUTE_UNUSED static void
-set_thread_name (
void
(*set_name) (const char *), const char *name)
+set_thread_name (
int
(*set_name) (const char *), const char *name)
{
set_name (name);
}
{
set_name (name);
}
This page took
0.036659 seconds
and
4
git commands to generate.