[Lldb-commits] [lldb] [lldb] Include api-level.h header for Android (PR #124383)

Brad Smith via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 24 18:41:45 PST 2025


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/124383

None

>From b0580b8b0f1f50e5fa10d2b872c79b4942faf093 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 24 Jan 2025 21:38:07 -0500
Subject: [PATCH] [lldb] Include api-level.h header for Android

---
 lldb/source/Host/posix/HostInfoPosix.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lldb/source/Host/posix/HostInfoPosix.cpp b/lldb/source/Host/posix/HostInfoPosix.cpp
index 879dccfd353be5..78116eb161afa6 100644
--- a/lldb/source/Host/posix/HostInfoPosix.cpp
+++ b/lldb/source/Host/posix/HostInfoPosix.cpp
@@ -29,6 +29,10 @@
 #include <sys/utsname.h>
 #include <unistd.h>
 
+#ifdef __ANDROID__
+#include <android/api-level.h>
+#endif
+
 using namespace lldb_private;
 
 namespace {



More information about the lldb-commits mailing list