diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index 6d3abaa..6e436e5 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -27,7 +27,7 @@ tab-size = 4 #include #include -#ifndef STATIC_BUILD +#if !defined(STATIC_BUILD) || !defined(__GLIBC__) #include #endif @@ -1437,7 +1437,7 @@ namespace Proc { new_proc.user = uid_user.at(uid); } else { - #ifndef STATIC_BUILD + #if !defined(STATIC_BUILD) || !defined(__GLIBC__) try { struct passwd* udet; udet = getpwuid(stoi(uid));