Bug#647229: p11-kit: FTBFS(!linux): error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)

Robert Millan rmh at debian.org
Sun Nov 6 16:34:31 UTC 2011


clone 647229 -1
tags -1 patch
reassign -1 libc0.1-dev
thanks

Hi,

2011/11/6 Andreas Metzler <ametzler at downhill.at.eu.org>:
> Hello,
> Afaict this happens because on Linux the respective parts of pthread.h
> are conditional on
> #if defined __USE_UNIX98 || defined __USE_XOPEN2K8
> but only
> #if defined __USE_UNIX98
> on kFree-BSD.
>
> features.h on both Linux and kFree-BSD #defines __USE_XOPEN2K8 by
> default.

I compared nptl and linuxthreads versions of pthread.h and there were
a pair of similar problems.

Here's a patch that harmonizes usage of __USE_XOPEN2K8 a bit with the
nptl version.

-- 
Robert Millan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lt_pthread_h.diff
Type: text/x-diff
Size: 1634 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnutls-maint/attachments/20111106/f5de372d/attachment.diff>


More information about the Pkg-gnutls-maint mailing list