From 9624f721ba523e9b739e628faf2658fd46a79006 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 May 2015 11:49:50 +0200 Subject: [PATCH] llvm: lldb: fix ptrace handling on musl (2). --- srcpkgs/llvm/files/patches/lldb/fix-musl.patch | 13 ++++++++++++- srcpkgs/llvm/template | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/srcpkgs/llvm/files/patches/lldb/fix-musl.patch b/srcpkgs/llvm/files/patches/lldb/fix-musl.patch index bb670e5532..13cb59da71 100644 --- a/srcpkgs/llvm/files/patches/lldb/fix-musl.patch +++ b/srcpkgs/llvm/files/patches/lldb/fix-musl.patch @@ -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 diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template index 98fc337d5d..6579a9d085 100644 --- a/srcpkgs/llvm/template +++ b/srcpkgs/llvm/template @@ -1,4 +1,4 @@ -# Template file for 'llvm' +# Template file for 'llvm' pkgname=llvm version=3.6.0 wrksrc="llvm-${version}.src"