Home | History | Annotate | Download | only in patches.ndk
      1 From 535dc4bfad5b6796c567274af9fc97661cbabba4 Mon Sep 17 00:00:00 2001
      2 From: Lai Wei-Chih <Robert.Lai (a] mediatek.com>
      3 Date: Wed, 26 Jun 2013 09:52:00 +0800
      4 Subject: Allow clone() usage on X86.
      5 
      6 Since https://android-review.googlesource.com/#/c/61106/,
      7 the missing clone has been added to x86.
      8 
      9 Change-Id: Id1987f462d978dcff0b6307f929019456bc24a6d
     10 ---
     11 include/gtest/internal/gtest-port.h |    5 ++---
     12  1 file changed, 2 insertions(+), 3 deletions(-)
     13 
     14 diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
     15 index a3f363f..5af0f45 100644
     16 --- a/include/gtest/internal/gtest-port.h
     17 +++ b/include/gtest/internal/gtest-port.h
     18 @@ -611,9 +611,8 @@ using ::std::tuple_size;
     19  
     20  # if GTEST_OS_LINUX && !defined(__ia64__)
     21  #  if GTEST_OS_LINUX_ANDROID
     22 -// On Android, clone() is only available starting with Gingerbread, except
     23 -// on x86, for some reason.
     24 -#    if !defined(__i386__) && __ANDROID_API__ >= 9
     25 +// On Android, clone() is only available starting with Gingerbread.
     26 +#    if __ANDROID_API__ >= 9
     27  #     define GTEST_HAS_CLONE 1
     28  #    else
     29  #     define GTEST_HAS_CLONE 0
     30 -- 
     31 1.7.9.5
     32 
     33