Skip to content

Commit

Permalink
Apply Android hostname fix only for Android min SDK version < 28
Browse files Browse the repository at this point in the history
  • Loading branch information
jstefanelli committed May 7, 2024
1 parent 23fefd7 commit f5f7157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hostname.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ std::string uvgrtp::hostname::get_username()
}

return std::string(buffer);
#elif defined(ANDROID)
#elif defined(ANDROID) && __ANDROID_MIN_SDK_VERSION__ < 28
const char* username = getlogin();

if (username == nullptr) {
Expand Down

0 comments on commit f5f7157

Please sign in to comment.