Re: dietlibc: Debian redistribution

VOITPTRPTR <[email protected]> Fri, 8 Jul 2011 23:06:35 +0200
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
Hi guys,

I'm trying to get my thread PID by calling the following function:

#include <sys/syscall.h>
pid_t gettid( void )
{
	return syscall( __NR_gettid );
}

It works under GCC, but when trying to compile the above code
using DIETLIBC, I got this error:
...
mc.o: In function `gettid':
mc.c:(.text+0xe): undefined reference to `syscall'

Who syscall are handled under DIETLIBC please?

cheers
/V