From 1baedaf058abc203c831200af7d425d00ba6f91f Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 21 Aug 2006 00:05:55 +0000 Subject: Replaced _syscall0(pid_t, gettid) with syscall(__NR_gettid) as the original one does not work with latest kernel headers --- xine/post.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xine/post.c b/xine/post.c index 14c86e4b..37525f35 100644 --- a/xine/post.c +++ b/xine/post.c @@ -34,6 +34,8 @@ #if 1 # include +# include +# include # include # include # include @@ -46,8 +48,6 @@ /* from xine_frontend.c: */ extern int LogToSysLog; /* log to syslog instead of console */ - pid_t gettid(void); /*_syscall0(pid_t, gettid);*/ - # if !defined(XINELIBOUTPUT_DEBUG_STDOUT) && \ !defined(XINELIBOUTPUT_DEBUG_STDERR) @@ -62,7 +62,7 @@ if(!LogToSysLog) { printf(LOG_MODULENAME "%s\n", buf); } else { - syslog(level, "[%d] " LOG_MODULENAME "%s", gettid(), buf); + syslog(level, "[%ld] " LOG_MODULENAME "%s", syscall(__NR_gettid), buf); } va_end(argp); } -- cgit v1.2.3