aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-mojo_shell_runner_init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-mojo_shell_runner_init.cc')
-rw-r--r--www/chromium/files/patch-mojo_shell_runner_init.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/chromium/files/patch-mojo_shell_runner_init.cc b/www/chromium/files/patch-mojo_shell_runner_init.cc
new file mode 100644
index 000000000000..ee3f62f2c8d9
--- /dev/null
+++ b/www/chromium/files/patch-mojo_shell_runner_init.cc
@@ -0,0 +1,19 @@
+--- mojo/shell/runner/init.cc.orig 2016-05-21 17:23:12 UTC
++++ mojo/shell/runner/init.cc
+@@ -68,6 +68,8 @@ void WaitForDebuggerIfNecessary() {
+
+ void CallLibraryEarlyInitialization(base::NativeLibrary app_library) {
+ // Do whatever warming that the mojo application wants.
++
++#if !defined(OS_FREEBSD)
+ typedef void (*LibraryEarlyInitFunction)(const uint8_t*);
+ LibraryEarlyInitFunction init_function =
+ reinterpret_cast<LibraryEarlyInitFunction>(
+@@ -79,6 +81,7 @@ void CallLibraryEarlyInitialization(base
+ const uint8_t* icu_data = base::i18n::GetRawIcuMemory();
+ init_function(icu_data);
+ }
++#endif
+
+ // TODO(erg): All chromium binaries load base. We might want to make a
+ // general system for other people.