aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-13 16:44:17 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-13 17:03:24 -0800
commit0e36f078d4a9666303340506638726d316096e07 (patch)
tree173987ffb4995f03b518825885531fc1e6b2e9d0 /src/library.js
parentcd1edebb5034ea52396a5b68304e84ae80878740 (diff)
add fputwc, which enables wprintf1.8.9
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js6
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 };
});