aports/testing/lldb/lldb-3.8-alpine.patch
Bartłomiej Piotrowski f697997042 testing/lldb: new aport
next generation, high-performance debugger
http://llvm.org/
2016-06-18 22:15:45 +02:00

28 lines
699 B
Diff

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