glibc/sysdeps/nptl
Florian Weimer 9baa46aa7b nptl: Avoid using PTHREAD_MUTEX_DEFAULT in macro definition [BZ #25271]
Commit 1c3f9acf1f ("nptl: Add struct_mutex.h")
replaced a zero constant with the identifier PTHREAD_MUTEX_DEFAULT
in the macro PTHREAD_MUTEX_INITIALIZER.  However, that constant
is not available in ISO C11 mode:

In file included from /usr/include/bits/thread-shared-types.h:74,
                 from /usr/include/bits/pthreadtypes.h:23,
                 from /usr/include/pthread.h:26,
                 from bug25271.c:1:
bug25271.c:3:21: error: ‘PTHREAD_MUTEX_DEFAULT’ undeclared here (not in a function)
    3 | pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~

This commit change the constant to the equivalent
PTHREAD_MUTEX_TIMED_NP, which is in the POSIX extension namespace
and thus always available.
2020-01-30 15:54:49 +01:00
..
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sys Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
aio_misc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
allocrtsig.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-tunables.list Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fork.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fork.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
futex-internal.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gai_misc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies
internaltypes.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jmp-unwind.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-lock.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-lockP.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
librt-cancellation.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lowlevellock-futex.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makeconfig Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
malloc-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
proc_service.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread-functions.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread-offsets.h nptl: Add default pthread-offsets.h 2019-11-26 13:53:36 +00:00
pthread.h nptl: Avoid using PTHREAD_MUTEX_DEFAULT in macro definition [BZ #25271] 2020-01-30 15:54:49 +01:00
setxid.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
shm-directory.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stdio-lock.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Subdirs
tcb-offsets.h
thread_db.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
threads.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
timer_routines.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-mqueue8x.c
unwind-forcedunwind.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00