• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 535dc4bfad5b6796c567274af9fc97661cbabba4 Mon Sep 17 00:00:00 2001
2From: Lai Wei-Chih <Robert.Lai@mediatek.com>
3Date: Wed, 26 Jun 2013 09:52:00 +0800
4Subject: Allow clone() usage on X86.
5
6Since https://android-review.googlesource.com/#/c/61106/,
7the missing clone has been added to x86.
8
9Change-Id: Id1987f462d978dcff0b6307f929019456bc24a6d
10---
11include/gtest/internal/gtest-port.h |    5 ++---
12 1 file changed, 2 insertions(+), 3 deletions(-)
13
14diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
15index 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--
311.7.9.5
32
33