lldb: guard aarch64.patch

Else, <asm/ptrace.h> craps all over the namespace on __i386__.
This commit is contained in:
Christian Neukirchen 2015-08-11 16:58:02 +02:00
parent d6d43f5c88
commit 44455ef207

View file

@ -1,20 +1,24 @@
--- source/Plugins/Process/Linux/ProcessMonitor.cpp.orig
+++ source/Plugins/Process/Linux/ProcessMonitor.cpp
@@ -27,6 +27,7 @@
@@ -27,6 +27,9 @@
#include <sys/procfs.h>
#endif
#include <sys/ptrace.h>
+#ifdef __aarch64__
+#include <asm/ptrace.h>
+#endif
#include <sys/uio.h>
#include <sys/socket.h>
#include <sys/syscall.h>
--- source/Plugins/Process/Linux/NativeProcessLinux.cpp.orig
+++ source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -29,6 +29,7 @@
@@ -29,6 +29,9 @@
#include <sys/procfs.h>
#endif
#include <sys/ptrace.h>
+#ifdef __aarch64__
+#include <asm/ptrace.h>
+#endif
#include <sys/uio.h>
#include <sys/socket.h>
#include <sys/syscall.h>