llvm: lldb: fix ptrace handling on musl (2).
This commit is contained in:
parent
829faea432
commit
9624f721ba
2 changed files with 13 additions and 2 deletions
|
@ -25,7 +25,18 @@
|
|||
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
||||
|
||||
-#ifdef __ANDROID__
|
||||
+#if defined(__ANDROID__) || !defined(__GLIBC__)
|
||||
+#ifndef __GLIBC__
|
||||
#define __ptrace_request int
|
||||
#define PT_DETACH PTRACE_DETACH
|
||||
#endif
|
||||
--- source/Plugins/Process/Linux/ProcessMonitor.cpp.orig 2015-05-07 11:48:17.954425191 +0200
|
||||
+++ source/Plugins/Process/Linux/ProcessMonitor.cpp 2015-05-07 11:48:42.097396679 +0200
|
||||
@@ -51,7 +51,7 @@
|
||||
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
||||
#include "ProcessMonitor.h"
|
||||
|
||||
-#ifdef __ANDROID__
|
||||
+#ifndef __GLIBC__
|
||||
#define __ptrace_request int
|
||||
#define PT_DETACH PTRACE_DETACH
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Template file for 'llvm'
|
||||
# Template file for 'llvm'
|
||||
pkgname=llvm
|
||||
version=3.6.0
|
||||
wrksrc="llvm-${version}.src"
|
||||
|
|
Loading…
Reference in a new issue