diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-09 20:00:45 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-09 20:00:45 +0400 |
commit | c592023aed989c1fe98d6033c01b89d5b86dd8b4 (patch) | |
tree | 1d18ab2f43de73d62dc8d41760bd66e53bb877b1 /builtin/index-pack.c | |
parent | d02d7ac303b1a22c7de4a6c3a00074d38b498134 (diff) | |
parent | c0f86547c522906da7538c0d2b7b0de608499c23 (diff) |
Merge branch 'rj/platform-pread-may-be-thread-unsafe'
On Cygwin, the platform pread(3) is not thread safe, just like our
own compat/ emulation, and cannot be used in the index-pack program.
* rj/platform-pread-may-be-thread-unsafe:
index-pack: Disable threading on cygwin
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r-- | builtin/index-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 8b5c1eb33e..5a0372ab08 100644 --- a/builtin/index-pack.c +++ b/builtin/index-pack.c @@ -40,8 +40,8 @@ struct base_data { int ofs_first, ofs_last; }; -#if !defined(NO_PTHREADS) && defined(NO_PREAD) -/* NO_PREAD uses compat/pread.c, which is not thread-safe. Disable threading. */ +#if !defined(NO_PTHREADS) && defined(NO_THREAD_SAFE_PREAD) +/* pread() emulation is not thread-safe. Disable threading. */ #define NO_PTHREADS #endif |