diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-13 16:44:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-13 17:03:24 -0800 |
commit | 0e36f078d4a9666303340506638726d316096e07 (patch) | |
tree | 173987ffb4995f03b518825885531fc1e6b2e9d0 /src | |
parent | cd1edebb5034ea52396a5b68304e84ae80878740 (diff) |
add fputwc, which enables wprintf1.8.9
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index c41a8cda..69569601 100644 --- a/src/library.js +++ b/src/library.js @@ -9172,6 +9172,10 @@ LibraryManager.library = { tempRet0 = 0; return (high >>> (bits - 32))|0; }, + + // misc shims for musl + __lockfile: function() { return 1 }, + __unlockfile: function(){}, }; function autoAddDeps(object, name) { @@ -9184,7 +9188,7 @@ function autoAddDeps(object, name) { } // Add aborting stubs for various libc stuff needed by libc++ -['pthread_cond_signal', 'pthread_equal', 'pthread_join', 'pthread_detach', 'catgets', 'catopen', 'catclose', 'fputwc', '__lockfile', '__unlockfile'].forEach(function(aborter) { +['pthread_cond_signal', 'pthread_equal', 'pthread_join', 'pthread_detach', 'catgets', 'catopen', 'catclose'].forEach(function(aborter) { LibraryManager.library[aborter] = function aborting_stub() { throw 'TODO: ' + aborter }; }); |