Hi All,
after having merged recent uClibc_mutex.h into nptl branch I've seen a problem in building 'dvdr-tools' application. The problem is that a source file of this application use a variable "BOOL clone". This source includes stdio.h -> uClibc_stdio.h -> uClibc_mutex.h -> pthread.h -> sched.h.
In sched.h there is the clone prototype defined causing the clashing.

I think that uCibc_mutex.h could simply include <bits/pthreadtypes.h> for getting the definition of pthread_mutex_t, and I'm not sure it really needs including pthread.h.

So the attached dummy patch is intended to fix it.

Cheers,
Carmelo

Index: libc/sysdeps/linux/common/bits/uClibc_mutex.h
===================================================================
--- libc/sysdeps/linux/common/bits/uClibc_mutex.h       (revision 22609)
+++ libc/sysdeps/linux/common/bits/uClibc_mutex.h       (working copy)
@@ -12,8 +12,7 @@
 
 #ifdef __UCLIBC_HAS_THREADS__
 
-#include <pthread.h>
-#include <bits/uClibc_pthread.h>
+#include <bits/pthreadtypes.h>
 
 #define __UCLIBC_MUTEX_TYPE                            pthread_mutex_t
 
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to