Backed out changeset 9baba7e5b351 (bug 872577) for multiple Android failures.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2013-08-13 12:51:17 -04:00
parent 65882bb67b
commit d9df649155

View File

@ -228,25 +228,10 @@
return fd.dispose();
};
{
// Symbol free() is special.
// We override the definition of free() on several platforms.
let default_lib = null;
try {
// On platforms for which we override free(), nspr defines
// a special library name "a.out" that will resolve to the
// correct implementation free().
default_lib = ctypes.open("a.out");
} catch (ex) {
// On other platforms, well, use the regular version of free.
default_lib = libc;
}
UnixFile.free =
default_lib.declare("free", ctypes.default_abi,
/*return*/ ctypes.void_t,
/*ptr*/ ctypes.voidptr_t);
}
UnixFile.free =
libc.declare("free", ctypes.default_abi,
/*return*/ ctypes.void_t,
/*ptr*/ ctypes.voidptr_t);
// Other functions
UnixFile.access =