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 #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 -#ifdef __ANDROID_NDK__ +#ifndef __GLIBC__ #define PT_DETACH PTRACE_DETACH typedef int __ptrace_request; #endif