coreutils: fix build with eglibc
[packages.git] / utils / coreutils / patches / 002-fix_compile_with_uclibc.patch
1 --- a/lib/pthread.in.h
2 +++ b/lib/pthread.in.h
3 @@ -225,6 +225,9 @@
4  
5  /* Approximate spinlocks with mutexes.  */
6  
7 +#ifdef __UCLIBC__
8 +#define pthread_spinlock_t original_pthread_spinlock_t
9 +#endif
10  typedef pthread_mutex_t pthread_spinlock_t;
11  
12  static inline int