Bug#725383: FTBFS on kfreebsd-*: SYS_gettid is Linux-specific

Robert Millan rmh at debian.org
Sun Oct 6 13:58:34 UTC 2013


Petr Salinger:
>> I think you can avoid this by using the primitive:
>>
>> lwpid_t tid;
>> syscall (SYS_thr_self, &tid);
> 
> There is a mess in kernel interfaces,
> the right one is
> 
> long  tid;
> syscall (SYS_thr_self, &tid);

Is there any lwpid_t which isn't "long" and defined by kernel headers?

-- 
Robert Millan



More information about the Pkg-grass-devel mailing list