D19697: Fixes the build failure when using ECM Android toolchain

Volker Krause noreply at phabricator.kde.org
Tue Mar 12 17:44:41 GMT 2019


vkrause added a comment.


  I can reproduce with -DCMAKE_ANDROID_API=26 here, while anything below builds fine. This seems to fix it:
  
    diff --git a/src/lib/util/kuser_unix.cpp b/src/lib/util/kuser_unix.cpp
    index c42ea99..216dfb7 100644
    --- a/src/lib/util/kuser_unix.cpp
    +++ b/src/lib/util/kuser_unix.cpp
    @@ -36,7 +36,7 @@
     #include <algorithm>  // std::find
     #include <functional> // std::function
     
    -#if defined(__BIONIC__)
    +#if defined(__BIONIC__) && __ANDROID_API__ < 26
     static inline struct passwd * getpwent() { return nullptr; }
     inline void setpwent() { }
     static inline void setgrent() { }

REPOSITORY
  R244 KCoreAddons

REVISION DETAIL
  https://phabricator.kde.org/D19697

To: sh-zam
Cc: vkrause, apol, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190312/c667b77b/attachment.html>


More information about the Kde-frameworks-devel mailing list