diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-10-24 14:59:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-24 14:59:10 -0700 |
commit | e4da4fbe0eea55c26f042f76df58bfc529b46ae0 (patch) | |
tree | 7ead155867beb400d6bed1d89be73803305f6d31 /thread-utils.h | |
parent | bb8caad3814b49316f842a006082e79b4e46125c (diff) | |
parent | 0f4b6db3baeff8de53769b38f439408abd5a42f7 (diff) | |
download | git-e4da4fbe0eea55c26f042f76df58bfc529b46ae0.tar.gz |
Merge branch 'eb/no-pthreads'
Allow us build with NO_PTHREADS=NoThanks compilation option.
* eb/no-pthreads:
Handle atexit list internaly for unthreaded builds
pack-objects: set number of threads before checking and warning
index-pack: fix compilation with NO_PTHREADS
Diffstat (limited to 'thread-utils.h')
-rw-r--r-- | thread-utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/thread-utils.h b/thread-utils.h index 6fb98c333c..d9a769d190 100644 --- a/thread-utils.h +++ b/thread-utils.h @@ -7,5 +7,9 @@ extern int online_cpus(void); extern int init_recursive_mutex(pthread_mutex_t*); +#else + +#define online_cpus() 1 + #endif #endif /* THREAD_COMPAT_H */ |