X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=preload-index.c;h=88edc5f8a9d5384e19426e6adb40e08b34d3adf2;hb=7c98213abc2a834f16646b9fe842f6e63c7ddb81;hp=a6855837a4b85e475d556527335d89c8b0e3a02c;hpb=7c4ea599b0d44e46c4f96bf955b62d96126b53ff;p=git.git diff --git a/preload-index.c b/preload-index.c index a6855837a..88edc5f8a 100644 --- a/preload-index.c +++ b/preload-index.c @@ -2,6 +2,14 @@ * Copyright (C) 2008 Linus Torvalds */ #include "cache.h" + +#ifdef NO_PTHREADS +static void preload_index(struct index_state *index, const char **pathspec) +{ + ; /* nothing */ +} +#else + #include /* @@ -81,6 +89,7 @@ static void preload_index(struct index_state *index, const char **pathspec) die("unable to join threaded lstat"); } } +#endif int read_index_preload(struct index_state *index, const char **pathspec) {