aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lldb/lldb-3.8-alpine.patch
blob: 97c56fd026d095f3d33e099ed180f0725a655893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/include/lldb/Host/android/Android.h b/include/lldb/Host/android/Android.h
index 8efc1a5..6e38d0d 100644
--- a/include/lldb/Host/android/Android.h
+++ b/include/lldb/Host/android/Android.h
@@ -15,7 +15,9 @@
 #include <errno.h>
 
 #define _isatty			isatty
+#ifndef SYS_tgkill
 #define SYS_tgkill		__NR_tgkill
+#endif
 
 namespace std
 {
diff --git a/include/lldb/Host/linux/Ptrace.h b/include/lldb/Host/linux/Ptrace.h
index b28bb37..3b70602 100644
--- a/include/lldb/Host/linux/Ptrace.h
+++ b/include/lldb/Host/linux/Ptrace.h
@@ -14,7 +14,7 @@
 
 #include <sys/ptrace.h>
 
-#ifdef __ANDROID_NDK__
+#ifndef __GLIBC__
 #define PT_DETACH PTRACE_DETACH
 typedef int __ptrace_request;
 #endif