exchange one nonportable API for another, since newer Linux kernels changed their mind
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <linux/unistd.h>
|
#include <sys/syscall.h>
|
||||||
#define _LINUX_PTRACE_H // hack to prevent broken linux/ptrace.h from conflicting with sys/ptrace.h
|
#define _LINUX_PTRACE_H // hack to prevent broken linux/ptrace.h from conflicting with sys/ptrace.h
|
||||||
#include <sys/user.h>
|
#include <sys/user.h>
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
static bool g_bUsingNPTL = false;
|
static bool g_bUsingNPTL = false;
|
||||||
|
|
||||||
static _syscall0(pid_t,gettid)
|
#define gettid() syscall(SYS_gettid)
|
||||||
|
|
||||||
#ifndef _CS_GNU_LIBPTHREAD_VERSION
|
#ifndef _CS_GNU_LIBPTHREAD_VERSION
|
||||||
#define _CS_GNU_LIBPTHREAD_VERSION 3
|
#define _CS_GNU_LIBPTHREAD_VERSION 3
|
||||||
|
|||||||
Reference in New Issue
Block a user