openwrt-packages/utils/coreutils/patches/002-fix_compile_with_uclibc...

13 lines
309 B
Diff

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