diff options
author | phintuka <phintuka> | 2006-08-21 00:05:55 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-08-21 00:05:55 +0000 |
commit | 1baedaf058abc203c831200af7d425d00ba6f91f (patch) | |
tree | 5872902e02a7ccae8e328ccdceee8bc11e24c48c | |
parent | 77b21f0eb059da0c3fdbe7422a8b2887f71f0998 (diff) | |
download | xineliboutput-1baedaf058abc203c831200af7d425d00ba6f91f.tar.gz xineliboutput-1baedaf058abc203c831200af7d425d00ba6f91f.tar.bz2 |
Replaced _syscall0(pid_t, gettid) with syscall(__NR_gettid) as the
original one does not work with latest kernel headers
-rw-r--r-- | xine/post.c | 6 |
1 files 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 <sys/types.h> +# include <sys/syscall.h> +# include <unistd.h> # include <linux/unistd.h> # include <errno.h> # include <syslog.h> @@ -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); } |