On 25/03/09 20:04, Paul Eggert wrote: > This patch is to add multithread support for coreutils. The code was > written by Glen Lenker, who has filed papers with the GNU project. > The pthread emulation (for platforms that lack pthreads) is very minimal, > just enough for coreutils to get by.
The coreutils build just failed on our integration server as it doesn't have <pthread.h> checking for pthread.h... no building pthread.h <command used to generate rather than GEN ...> sort.c:236:3: error: expected specifier-qualifier-list before 'pthread_spinlock_t' sort.c:243:3: error: expected specifier-qualifier-list before 'pthread_mutex_t' sort.c:3144:3: warning: implicit declaration of function 'pthread_spin_lock' ... So currently the coreutils code would need more ifdefs which I would prefer not to do, or we could expand the emulation in pthread.h.in What do you think? Pádraig.