Author: Brad Smith
Date: 2025-01-24T03:18:36-05:00
New Revision: a6cfde62bb89e595db2bf7bb8ae810293d8edf26

URL: 
https://github.com/llvm/llvm-project/commit/a6cfde62bb89e595db2bf7bb8ae810293d8edf26
DIFF: 
https://github.com/llvm/llvm-project/commit/a6cfde62bb89e595db2bf7bb8ae810293d8edf26.diff

LOG: [lldb] Check Android API for existence of getgrgid_r() introduced in 24 
(#124182)

Added: 
    

Modified: 
    lldb/source/Host/posix/HostInfoPosix.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/posix/HostInfoPosix.cpp 
b/lldb/source/Host/posix/HostInfoPosix.cpp
index 23ba3177de317a..879dccfd353be5 100644
--- a/lldb/source/Host/posix/HostInfoPosix.cpp
+++ b/lldb/source/Host/posix/HostInfoPosix.cpp
@@ -119,7 +119,7 @@ std::optional<std::string> 
PosixUserIDResolver::DoGetUserName(id_t uid) {
 }
 
 std::optional<std::string> PosixUserIDResolver::DoGetGroupName(id_t gid) {
-#ifndef __ANDROID__
+#if !defined(__ANDROID__) || __ANDROID_API__ >= 24
   char group_buffer[PATH_MAX];
   size_t group_buffer_size = sizeof(group_buffer);
   struct group group_info;


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

Reply via email to