summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-24 14:24:31 +0000
committerPavel Labath <labath@google.com>2017-01-24 14:24:31 +0000
commite9862b607eb481f2ba7b9b1d3646bb91c5d4daed (patch)
tree972e111726bfaadacf275fefe077ea6ed65991ec /lldb/source/Host/linux
parent5da456e6a1741d4cbd1aa9a52549d6e93ac3c0cd (diff)
downloadbcm5719-llvm-e9862b607eb481f2ba7b9b1d3646bb91c5d4daed.tar.gz
bcm5719-llvm-e9862b607eb481f2ba7b9b1d3646bb91c5d4daed.zip
include linux/personality.h on android
sys/personality.h is present only since android platform level 21. The linux/ version is present everywhere. llvm-svn: 292935
Diffstat (limited to 'lldb/source/Host/linux')
-rw-r--r--lldb/source/Host/linux/ProcessLauncherLinux.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Host/linux/ProcessLauncherLinux.cpp b/lldb/source/Host/linux/ProcessLauncherLinux.cpp
index 27a6329da06..ec54024963f 100644
--- a/lldb/source/Host/linux/ProcessLauncherLinux.cpp
+++ b/lldb/source/Host/linux/ProcessLauncherLinux.cpp
@@ -16,7 +16,11 @@
#include "lldb/Target/ProcessLaunchInfo.h"
#include <limits.h>
+#ifndef __ANDROID__
#include <sys/personality.h>
+#else
+#include <linux/personality.h>
+#endif
#include <sys/ptrace.h>
#include <sys/wait.h>
OpenPOWER on IntegriCloud