Consolidate definition of USE_WIN32API
[deliverable/binutils-gdb.git] / gdb / gdbsupport / thread-pool.c
index cd548956951109f83161f8a5fca9a8acae6e2cec..fc83ff765f655baa526f239e4969c7519aff8b28 100644 (file)
@@ -1,6 +1,6 @@
 /* Thread pool
 
-   Copyright (C) 2019 Free Software Foundation, Inc.
+   Copyright (C) 2019-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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.028984 seconds and 4 git commands to generate.