summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-03 08:48:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-05 04:42:11 (GMT)
commit10bc232d0f93957c42b2167f00fc3437b30b08b3 (patch)
tree82a5227cc330a584247ec9b018f4e80b719ef5dc /run-command.h
parent0ec79358d07db38e5d9e9e8a7c0d78f455763844 (diff)
downloadgit-10bc232d0f93957c42b2167f00fc3437b30b08b3.zip
git-10bc232d0f93957c42b2167f00fc3437b30b08b3.tar.gz
git-10bc232d0f93957c42b2167f00fc3437b30b08b3.tar.bz2
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>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/run-command.h b/run-command.h
index 3932420..9b7f382 100644
--- a/run-command.h
+++ b/run-command.h
@@ -1,9 +1,7 @@
#ifndef RUN_COMMAND_H
#define RUN_COMMAND_H
-#ifndef NO_PTHREADS
-#include <pthread.h>
-#endif
+#include "thread-utils.h"
#include "argv-array.h"