llvm: lldb: fix ptrace handling on musl.

This commit is contained in:
Juan RP 2015-05-07 11:40:16 +02:00
parent 9339f55ed3
commit 829faea432
2 changed files with 12 additions and 1 deletions

View File

@ -18,3 +18,14 @@
#ifndef _MSC_VER
#include <libgen.h>
#endif
--- source/Plugins/Process/Linux/NativeProcessLinux.cpp.orig 2015-05-07 11:33:00.109509237 +0200
+++ source/Plugins/Process/Linux/NativeProcessLinux.cpp 2015-05-07 11:36:17.726275750 +0200
@@ -68,7 +68,7 @@
#include "ProcFileReader.h"
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
-#ifdef __ANDROID__
+#if defined(__ANDROID__) || !defined(__GLIBC__)
#define __ptrace_request int
#define PT_DETACH PTRACE_DETACH
#endif

View File

@ -1,4 +1,4 @@
# Template file for 'llvm'
# Template file for 'llvm'
pkgname=llvm
version=3.6.0
wrksrc="llvm-${version}.src"