mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-02 00:50:23 +00:00
12 lines
555 B
Diff
12 lines
555 B
Diff
--- a/src/netxs/desktopio/system.hpp
|
|
+++ b/src/netxs/desktopio/system.hpp
|
|
@@ -1831,7 +1831,7 @@
|
|
auto chars = text(255, '\0');
|
|
auto error = ::gethostname(chars.data(), chars.size());
|
|
auto usrid = ::geteuid();
|
|
- #if defined(__BSD__)
|
|
+ #if defined(__BSD__) || defined(__ANDROID__)
|
|
auto uname = ::getlogin(); // username associated with a session, even if it has no controlling terminal.
|
|
#else
|
|
auto uname = ::cuserid(nullptr);
|