Explorar el Código

compilation error

pthread_setname_np arguments
hansipie hace 10 años
padre
commit
b66be5689e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -1192,7 +1192,7 @@ static void mg_set_thread_name(const char *name)
 #elif defined(__linux__)
 	/* Linux */
 	#if defined(GLIBC_CHK)
-	(void)pthread_setname_np(threadName);
+	(void)pthread_setname_np(pthread_self(), threadName);
 	#else
 	(void)prctl(PR_SET_NAME, threadName, 0, 0, 0);
 	#endif