Skip to content

Commit 0fa87e4

Browse files
committed
fixup! Fix build failures
This reverts a part of commit 866aa08, as it's no longer necessary after the previous two commits.
1 parent 14afb82 commit 0fa87e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

system/lib/libc/musl/arch/emscripten/syscall_arch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int __syscall_uname(struct utsname *buf);
4949
int __syscall_mprotect(size_t start, size_t len, int prot);
5050
pid_t __syscall_getpgid(pid_t pid);
5151
int __syscall_fchdir(int fd);
52-
int __syscall__newselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, void *timeout);
52+
int __syscall__newselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
5353
int __syscall_msync(void *addr, size_t len, int flags);
5454
pid_t __syscall_getsid(pid_t pid);
5555
int __syscall_fdatasync(int fd);
@@ -99,7 +99,7 @@ int __syscall_symlinkat(const char *target, int newdirfd, const char *linkpath);
9999
int __syscall_readlinkat(int dirfd, const char *path, char *buf, size_t bufsize);
100100
int __syscall_fchmodat2(int dirfd, const char *path, mode_t mode, int flags);
101101
int __syscall_faccessat(int dirfd, const char *path, int amode, int flags);
102-
int __syscall_pselect6(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, const void *ts, const void *mask);
102+
int __syscall_pselect6(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, const struct timespec *ts, const void *mask);
103103
int __syscall_utimensat(int dirfd, const char *path, const struct timespec times[2], int flags);
104104
int __syscall_fallocate(int fd, int mode, off_t offset, off_t len);
105105
int __syscall_dup3(int oldfd, int newfd, int flags);

system/lib/wasmfs/syscalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ int __syscall__newselect(int nfds,
17741774
fd_set* readfds_,
17751775
fd_set* writefds_,
17761776
fd_set* exceptfds_,
1777-
void* timeout_) {
1777+
struct timeval* timeout_) {
17781778
// TODO: Implement this syscall. For now, we return an error code,
17791779
// specifically ENOMEM which is valid per the docs:
17801780
// ENOMEM Unable to allocate memory for internal tables

0 commit comments

Comments
 (0)