aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 374a0952..78af28cd 100644
--- a/src/library.js
+++ b/src/library.js
@@ -642,6 +642,16 @@ var Library = {
}
return me.ret;
},
+
+ // errno.h
+
+ __errno_location: function() {
+ var me = arguments.callee;
+ if (!me.ret) {
+ me.ret = Pointer_make([0], 0, ALLOC_STATIC);
+ }
+ return me.ret;
+ },
};
load('library_sdl.js');