From f0829e777747ebf27f8b15286a2e26da06f4c141 Mon Sep 17 00:00:00 2001
From: BogDan Vatra <bogdan@kde.org>
Date: Tue, 13 Jan 2015 18:47:35 +0200
Subject: [PATCH 2/5] No mocks on Andorid
---
source/lib/sysdep/os/unix/unix_executable_pathname.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/source/lib/sysdep/os/unix/unix_executable_pathname.cpp b/source/lib/sysdep/os/unix/unix_executable_pathname.cpp
index ae7b989..dcb4019 100644
a
|
b
|
|
25 | 25 | #include "lib/sysdep/sysdep.h" |
26 | 26 | |
27 | 27 | #define GNU_SOURCE |
28 | | #include "mocks/dlfcn.h" |
29 | | #include "mocks/unistd.h" |
| 28 | #if OS_ANDROID |
| 29 | # include <dlfcn.h> |
| 30 | # include <unistd.h> |
| 31 | #define T |
| 32 | #else |
| 33 | # include "mocks/dlfcn.h" |
| 34 | # include "mocks/unistd.h" |
| 35 | #endif |
30 | 36 | |
31 | 37 | #include <cstdio> |
32 | 38 | |