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
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user