Skip to content

Commit a6cfde6

Browse files
authored
[lldb] Check Android API for existence of getgrgid_r() introduced in 24 (#124182)
1 parent bfd9bc2 commit a6cfde6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/posix/HostInfoPosix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ std::optional<std::string> PosixUserIDResolver::DoGetUserName(id_t uid) {
119119
}
120120

121121
std::optional<std::string> PosixUserIDResolver::DoGetGroupName(id_t gid) {
122-
#ifndef __ANDROID__
122+
#if !defined(__ANDROID__) || __ANDROID_API__ >= 24
123123
char group_buffer[PATH_MAX];
124124
size_t group_buffer_size = sizeof(group_buffer);
125125
struct group group_info;

0 commit comments

Comments
 (0)