Commit 6346c046b1
Hi Philippe,
what problem did you had to address with commit 6346c046b1? I'm asking as it most probably breaks what e7d889f56c tried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux
Quoted 5 lines · Jan Kiszka
Hi Philippe,
what problem did you had to address with commit
6346c046b1? I'm asking as it most probably breaks whate7d889f56ctried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).
The problem was that with uclibc, pthread_mutexattr_set_prio_inherit existed, but PTHREAD_PRIO_INHERIT did not exit, so the posix mutex-torture test was not compiling. Which is why, we replaced with:
#ifndef PTHREAD_PRIO_INHERIT
#define PTHREAD_PRIO_INHERIT
#endif
which should work as long as this piece of code is put after the #include_next<pthread.h>
But maybe we forgot that...
Besides, I use recent libc (and I believe with -Wall -W) and do not see any warning . Would you be compiling with g++ or with special flags?
Signature · 1 line
Gilles
Quoted 8 lines · Gilles Chanteperdrix
Quoted 5 lines · Jan Kiszka
Hi Philippe,
what problem did you had to address with commit
6346c046b1? I'm asking as it most probably breaks whate7d889f56ctried to fix (e.g. double definitions of PTHREAD_PRIO_* with recent glibcs).The problem was that with uclibc,
pthread_mutexattr_set_prio_inherit
pthread_mutexatt_setprotocol
Quoted 12 lines
existed, but
PTHREAD_PRIO_INHERITdid not exit, so the posix mutex-torture test was not compiling. Which is why, we replaced with:
#ifndefPTHREAD_PRIO_INHERIT
#definePTHREAD_PRIO_INHERIT
#endifwhich should work as long as this piece of code is put after the #include_next<pthread.h>
But maybe we forgot that...Besides, I use recent libc (and I believe with -Wall -W) and do not see any warning . Would you be compiling with g++ or with special flags?
Signature · 1 line
Gilles