Ticket #2996: 0002-2-No-mocks-on-Andorid.patch

File 0002-2-No-mocks-on-Andorid.patch, 890 bytes (added by BogDan, 9 years ago)
  • source/lib/sysdep/os/unix/unix_executable_pathname.cpp

    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  
    2525#include "lib/sysdep/sysdep.h"
    2626
    2727#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
    3036
    3137#include <cstdio>
    3238