summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-12-10 18:32:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-12-10 20:58:06 (GMT)
commitb361888dd5a26c4f1eb6268392e89e2d546accf6 (patch)
treed2c62bda2a95eaea7871c0c645f54d8d45734915 /transport-helper.c
parente4117b1fe8fa17f54ea30997255299ba5650f445 (diff)
downloadgit-b361888dd5a26c4f1eb6268392e89e2d546accf6.zip
git-b361888dd5a26c4f1eb6268392e89e2d546accf6.tar.gz
git-b361888dd5a26c4f1eb6268392e89e2d546accf6.tar.bz2
thread-utils.h: simplify the inclusion
All files that include this header file use the same four line incantation: #ifndef NO_PTHREADS #include <pthread.h> #include "thread-utils.h" #endif Move the responsibility for that gymnastics to the header file from the files that include it. This approach makes it easier to later declare new services that are related to threading in thread-utils.h and have them available to all the threading code. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 3a50856..4e4754c 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -8,11 +8,7 @@
#include "quote.h"
#include "remote.h"
#include "string-list.h"
-
-#ifndef NO_PTHREADS
-#include <pthread.h>
#include "thread-utils.h"
-#endif
static int debug;