[Pkg-citadel-devel] Bug#590005: Bug#590005: citadel: FTBFS on kfreebsd-*:threads.c:852: error: 'SYS_gettid' undeclared

Cyril Brulebois kibi at debian.org
Sat Jul 24 17:22:59 UTC 2010


Hi Wilfried.

Forwarding your mail/question to both the bug and the appropriate list
(sorry that it wasn't clear in my initial message).

Wilfried Goesgens <w.goesgens at outgesourced.org> (24/07/2010):
> Hy,
> 
> the line is to determine the LWPID of the thread in question; it
> doesn't seem as if  pthread offers a portable wrapper, it just gives
> you the thread-ID which otoh you won't find anywhere else on the
> system aside of gdb; for  example top or ps just give you the LWPID.
> 
> whats the BSD-way of doing this?
> 
> the lines in question look like that:
> 
> #ifdef HAVE_SYSCALL_H
>  this_thread->reltid = syscall(SYS_gettid);
> #endif

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-citadel-devel/attachments/20100724/6e139c3b/attachment.pgp>


More information about the Pkg-citadel-devel mailing list