[Lldb-commits] [lldb] r292935 - include linux/personality.h on android

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 24 06:24:31 PST 2017


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>
 




More information about the lldb-commits mailing list