mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-21 22:56:32 +00:00
- Patch from Aravind Parchuri <aravind.parchuri@gmail.com> with some my modifications:
* Allows LSI MPT target driver to compile on kernels >2.6.15 * Changes the way how gettid() syscall gate implemented - Small doc update git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+6
-1
@@ -22,10 +22,15 @@
|
||||
#include <time.h>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
_syscall0(pid_t,gettid);
|
||||
pid_t gettid (void)
|
||||
{
|
||||
return syscall(__NR_gettid);
|
||||
}
|
||||
|
||||
#if defined(DEBUG) || defined(TRACING)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user