Skip to content

[Memory64] network libc changes for 64-bit #15230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/lib/libc/musl/src/network/recvmmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec *timeout)
{
#if LONG_MAX > INT_MAX
#if LONG_MAX > INT_MAX && !defined(__EMSCRIPTEN__)
struct mmsghdr *mh = msgvec;
unsigned int i;
for (i = vlen; i; i--, mh++)
Expand Down
4 changes: 2 additions & 2 deletions system/lib/libc/musl/src/network/recvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
{
ssize_t r;
#if LONG_MAX > INT_MAX
#if LONG_MAX > INT_MAX && !defined(__EMSCRIPTEN__)
struct msghdr h, *orig = msg;
if (msg) {
h = *msg;
Expand All @@ -15,7 +15,7 @@ ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
}
#endif
r = socketcall_cp(recvmsg, fd, msg, flags, 0, 0, 0);
#if LONG_MAX > INT_MAX
#if LONG_MAX > INT_MAX && !defined(__EMSCRIPTEN__)
if (orig) *orig = h;
#endif
return r;
Expand Down
2 changes: 1 addition & 1 deletion system/lib/libc/musl/src/network/sendmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
{
#if LONG_MAX > INT_MAX
#if LONG_MAX > INT_MAX && !defined(__EMSCRIPTEN__)
struct msghdr h;
struct cmsghdr chbuf[1024/sizeof(struct cmsghdr)+1], *c;
if (msg) {
Expand Down