Hide ia32 asm when not building for ARCH_CPU_X86_FAMILY
r21097, 'Linux sandbox: plumb timezone calls through the sandbox' adds some
ia32 assembly by the way of a define. This is bad for building for ARM.
Patch by Joel Stanley.
Review URL: http://codereview.chromium.org/160097
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21527 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc
index e59946c..4da9bfe0 100644
--- a/chrome/browser/zygote_main_linux.cc
+++ b/chrome/browser/zygote_main_linux.cc
@@ -10,6 +10,7 @@
#include <sys/prctl.h>
#include <sys/wait.h>
+#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/eintr_wrapper.h"
#include "base/global_descriptors_posix.h"
@@ -309,8 +310,10 @@
// files and cache the results or the descriptors.
base::RandUint64();
+#if defined(ARCH_CPU_X86_FAMILY)
PATCH_GLOBAL_OFFSET_TABLE(localtime, sandbox_wrapper::localtime);
PATCH_GLOBAL_OFFSET_TABLE(localtime_r, sandbox_wrapper::localtime_r);
+#endif
static const char kChrootMe = 'C';
static const char kChrootMeSuccess = 'O';