Fix pthread_setname_np build error
[deliverable/binutils-gdb.git] / gdb / gdbsupport / thread-pool.c
index cd548956951109f83161f8a5fca9a8acae6e2cec..a8c5fb774d9459e61a587aa70b5f11210fd5011e 100644 (file)
@@ -49,8 +49,10 @@ set_thread_name (int (*set_name) (pthread_t, const char *), const char *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
-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);
 }
This page took 0.023771 seconds and 4 git commands to generate.