42 lines
1.3 KiB
Diff
42 lines
1.3 KiB
Diff
|
From 13b33959b864e3697e8dad002577321de13f4cc9 Mon Sep 17 00:00:00 2001
|
||
|
From: Andrea Brancaleoni <miwaxe@gmail.com>
|
||
|
Date: Tue, 8 Sep 2015 23:00:56 +0200
|
||
|
Subject: [PATCH] fix musl
|
||
|
|
||
|
---
|
||
|
source/Core/ConnectionSharedMemory.cpp | 1 +
|
||
|
source/Host/common/FileSpec.cpp | 1 +
|
||
|
source/Host/linux/Host.cpp | 2 +-
|
||
|
source/Host/linux/HostThreadLinux.cpp | 2 ++
|
||
|
source/Plugins/Process/Linux/Procfs.h | 2 +-
|
||
|
5 files changed, 6 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/source/Host/common/FileSpec.cpp b/source/Host/common/FileSpec.cpp
|
||
|
index ceb094b..a48620d 100644
|
||
|
--- a/source/Host/common/FileSpec.cpp
|
||
|
+++ b/source/Host/common/FileSpec.cpp
|
||
|
@@ -14,6 +14,7 @@
|
||
|
#include "lldb/Host/windows/windows.h"
|
||
|
#endif
|
||
|
#include <fcntl.h>
|
||
|
+#include <limits.h> /* PATH_MAX */
|
||
|
#ifndef _MSC_VER
|
||
|
#include <libgen.h>
|
||
|
#endif
|
||
|
diff --git a/source/Plugins/Process/Linux/Procfs.h b/source/Plugins/Process/Linux/Procfs.h
|
||
|
index 1b383fb..4ebe390 100644
|
||
|
--- a/source/Plugins/Process/Linux/Procfs.h
|
||
|
+++ b/source/Plugins/Process/Linux/Procfs.h
|
||
|
@@ -12,7 +12,7 @@
|
||
|
|
||
|
#include <sys/ptrace.h>
|
||
|
|
||
|
-#ifdef __ANDROID__
|
||
|
+#ifndef __GLIBC__
|
||
|
#if defined (__arm64__) || defined (__aarch64__)
|
||
|
typedef unsigned long elf_greg_t;
|
||
|
typedef elf_greg_t elf_gregset_t[(sizeof (struct user_pt_regs) / sizeof(elf_greg_t))];
|
||
|
--
|
||
|
2.5.1
|
||
|
|