002-fix_compile_with_uclibc.patch 309 B

123456789101112
  1. --- a/lib/pthread.in.h
  2. +++ b/lib/pthread.in.h
  3. @@ -252,6 +252,9 @@ pthread_mutex_unlock (pthread_mutex_t *m
  4. /* Approximate spinlocks with mutexes. */
  5. +#ifdef __UCLIBC__
  6. +#define pthread_spinlock_t original_pthread_spinlock_t
  7. +#endif
  8. typedef pthread_mutex_t pthread_spinlock_t;
  9. _GL_PTHREAD_INLINE int