From f5f7157ffa2fe36d74b59cebef97be29e84256a9 Mon Sep 17 00:00:00 2001 From: jstefanelli Date: Tue, 7 May 2024 12:56:34 +0200 Subject: [PATCH] Apply Android hostname fix only for Android min SDK version < 28 --- src/hostname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostname.cc b/src/hostname.cc index 702c4dd0..d0c66a95 100644 --- a/src/hostname.cc +++ b/src/hostname.cc @@ -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) {