exchange one nonportable API for another, since newer Linux kernels changed their mind

This commit is contained in:
Glenn Maynard
2006-10-18 19:48:20 +00:00
parent f7f21e2b8c
commit 001a57c2e1
@@ -16,7 +16,7 @@
#include <sys/wait.h>
#include <sys/ptrace.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
#include <sys/user.h>
@@ -30,7 +30,7 @@
static bool g_bUsingNPTL = false;
static _syscall0(pid_t,gettid)
#define gettid() syscall(SYS_gettid)
#ifndef _CS_GNU_LIBPTHREAD_VERSION
#define _CS_GNU_LIBPTHREAD_VERSION 3