Bug 960509 - Load libSystem for MacOS X 32 bit. r=glandium
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Tue, 28 Jan 2014 08:50:34 -0500
changeset 165568 8edaa73d7bf15b2ef20203527d957b43664c248d
parent 165567 e7010796fdc0f302e3f9559a7b2ac0767ae06e7b
child 165569 13f6916e050082d7017bf5e40646b777a20b2409
push id26097
push userryanvm@gmail.com
push dateTue, 28 Jan 2014 21:18:27 +0000
treeherdermozilla-central@128c86a925d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs960509
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 960509 - Load libSystem for MacOS X 32 bit. r=glandium
toolkit/components/osfile/modules/osfile_unix_allthreads.jsm
--- a/toolkit/components/osfile/modules/osfile_unix_allthreads.jsm
+++ b/toolkit/components/osfile/modules/osfile_unix_allthreads.jsm
@@ -36,16 +36,17 @@ if (typeof Components != "undefined") {
 }
 
 let LOG = SharedAll.LOG.bind(SharedAll, "Unix", "allthreads");
 let Const = SharedAll.Constants.libc;
 
 // Open libc
 let libc;
 let libc_candidates =  [ "libc.so",
+                         "libSystem.B.dylib",
                          "a.out" ];
 for (let i = 0; i < libc_candidates.length; ++i) {
   try {
     libc = ctypes.open(libc_candidates[i]);
     break;
   } catch (x) {
     LOG("Could not open libc ", libc_candidates[i]);
   }