File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7344,6 +7344,12 @@ LibraryManager.library = {
7344
7344
// netdb.h
7345
7345
// ==========================================================================
7346
7346
7347
+ __h_errno_state: 'allocate(1, "i32", ALLOC_STATIC)',
7348
+ __h_errno_location__deps: ['__h_errno_state'],
7349
+ __h_errno_location: function() {
7350
+ return ___h_errno_state;
7351
+ },
7352
+
7347
7353
// We can't actually resolve hostnames in the browser, so instead
7348
7354
// we're generating fake IP addresses with lookup_name that we can
7349
7355
// resolve later on with lookup_addr.
@@ -7399,6 +7405,7 @@ LibraryManager.library = {
7399
7405
gethostbyaddr: function (addr, addrlen, type) {
7400
7406
if (type !== {{{ cDefine('AF_INET') }}}) {
7401
7407
___setErrNo(ERRNO_CODES.EAFNOSUPPORT);
7408
+ // TODO: set h_errno
7402
7409
return null;
7403
7410
}
7404
7411
addr = {{{ makeGetValue('addr', '0', 'i32') }}}; // addr is in_addr
You can’t perform that action at this time.
0 commit comments