run-command.h: include thread-utils.h instead of pthread.h
run-command.c may use threads for its async support. But instead of including pthread.h directly, let's include thread-utils.h. run-command.c probably never needs the dummy bits in thread-utils.h when NO_PTHREADS is defined. But this makes sure we have consistent HAVE_THREADS behavior everywhere. From now on outside compat/, thread-utils.h is the only place that includes pthread.h Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Nov 3, 2018 at 09:48 UTC
10bc232d0f93957c42b2167f00fc3437b30b08b3
1 file changed
+1
-3
run-command.h
+1
-3
@@ -1,9 +1,7 @@
1
#ifndef RUN_COMMAND_H
2
#define RUN_COMMAND_H
3
4
-#ifndef NO_PTHREADS
5
-#include <pthread.h>
6
-#endif
4
+#include "thread-utils.h"
5
6
#include "argv-array.h"
7