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

2013-10-05 Thread Robert Millan
I think you can avoid this by using the primitive: lwpid_t tid; syscall (SYS_thr_self, &tid); -- Robert Millan ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

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

2013-10-06 Thread Robert Millan
y lwpid_t which isn't "long" and defined by kernel headers? -- Robert Millan ___ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

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

2013-10-07 Thread Robert Millan
D (a.k.a. LWP) */ > > And compare with > http://svnweb.freebsd.org/base/head/sys/kern/syscalls.master?revision=255708&view=markup > > > 432 AUE_NULL STD { int thr_self(long *id); } Oh, I see. It seems I missunderstood what thr_self() does. Thanks for clarifying! -- Robe