Fix QCA android build

Summary:
to be able to run Input App (Android), we have to avoid calls to setuid. Otherwise the application coredumps on this call during runtime.

see https://github.com/lutraconsulting/input-sdk/blob/master/android/recipes/qca/recipe.sh

Reviewers: sitter, dfaure

Reviewed By: sitter

Differential Revision: https://phabricator.kde.org/D23289
This commit is contained in:
Peter Petrik 2019-09-07 17:18:42 +02:00 committed by Harald Sitter
parent 0be2a2ced3
commit 2895ca34dd

View File

@ -225,7 +225,7 @@ void init(MemoryMode mode, int prealloc)
if(drop_root)
{
#ifdef Q_OS_UNIX
#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID)
setuid(getuid());
#endif
}