Skip to content

Commit

Permalink
Merge pull request emscripten-core#4762 from ahixon/incoming
Browse files Browse the repository at this point in the history
fix missing dependency of recv, send on htons
  • Loading branch information
juj authored Dec 8, 2016
2 parents 1e9e18c + 1614fd3 commit 5909eee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Christopher Serr <[email protected]>
* Aaron Ruß <[email protected]> (copyright owned by DFKI GmbH)
* Vilibald Wanča <[email protected]>
* Alex Hixon <[email protected]>
4 changes: 3 additions & 1 deletion src/deps_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"bind": ["htonl", "htons", "ntohs"],
"connect": ["htonl", "htons", "ntohs"],
"socket": ["htonl", "htons", "ntohs"],
"sleep": ["usleep"]
"sleep": ["usleep"],
"recv": ["htons"],
"send": ["htons"]
}

5 changes: 5 additions & 0 deletions tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,13 @@ def test_link(self):
self.do_run(r'''
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
int main () {
void* thing = gethostbyname("bing.com");
ssize_t rval = recv (0, thing, 0, 0);
rval = send (0, thing, 0, 0);
return 0;
}''', '', force_c=True)

Expand Down

0 comments on commit 5909eee

Please sign in to comment.