ソースを参照

compilation error

pthread_setname_np arguments
hansipie 10 年 前
コミット
b66be5689e
1 ファイル変更1 行追加1 行削除
  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