Author: labath
Date: Tue Jan 24 08:24:31 2017
New Revision: 292935

URL: http://llvm.org/viewvc/llvm-project?rev=292935&view=rev
Log:
include linux/personality.h on android

sys/personality.h is present only since android platform level 21. The
linux/ version is present everywhere.

Modified:
    lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp

Modified: lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp?rev=292935&r1=292934&r2=292935&view=diff
==============================================================================
--- lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp (original)
+++ lldb/trunk/source/Host/linux/ProcessLauncherLinux.cpp Tue Jan 24 08:24:31 
2017
@@ -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>
 


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to