diff --git a/patches/Exagear/0003-server-Don-t-attempt-to-use-ptrace-when-running-with.patch b/patches/Exagear/0003-server-Don-t-attempt-to-use-ptrace-when-running-with.patch new file mode 100644 index 00000000..2c6e77bb --- /dev/null +++ b/patches/Exagear/0003-server-Don-t-attempt-to-use-ptrace-when-running-with.patch @@ -0,0 +1,25 @@ +From 67cc0e23b26d5d9abda7eb771dc2bec309cb8650 Mon Sep 17 00:00:00 2001 +From: Sebastian Lackner +Date: Sun, 23 Nov 2014 22:33:51 +0100 +Subject: server: Don't attempt to use ptrace when running with Exagear. + +--- + server/ptrace.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/server/ptrace.c b/server/ptrace.c +index cb436b6..fb29b5a 100644 +--- a/server/ptrace.c ++++ b/server/ptrace.c +@@ -531,7 +531,7 @@ void get_selector_entry( struct thread *thread, int entry, unsigned int *base, + + + #if defined(linux) && (defined(HAVE_SYS_USER_H) || defined(HAVE_ASM_USER_H)) \ +- && (defined(__i386__) || defined(__x86_64__)) ++ && (defined(__i386__) || defined(__x86_64__)) && !defined(EXAGEAR_COMPAT) + + #ifdef HAVE_SYS_USER_H + #include +-- +2.1.3 +