Browse files

linux: fix uv__epoll_create() prototype

  • Loading branch information...
1 parent 5da380a commit 3c526cb7e53975fc867a6796236010933aedc7be @bnoordhuis bnoordhuis committed Aug 21, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/unix/linux/syscalls.c
  2. +1 −1 src/unix/linux/syscalls.h
View
4 src/unix/linux/syscalls.c
@@ -247,9 +247,9 @@ int uv__eventfd2(unsigned int count, int flags) {
}
-int uv__epoll_create(void) {
+int uv__epoll_create(int size) {
#if __NR_epoll_create
- return syscall(__NR_epoll_create);
+ return syscall(__NR_epoll_create, size);
#else
return errno = ENOSYS, -1;
#endif
View
2 src/unix/linux/syscalls.h
@@ -89,7 +89,7 @@ struct uv__mmsghdr {
int uv__accept4(int fd, struct sockaddr* addr, socklen_t* addrlen, int flags);
int uv__eventfd(unsigned int count);
-int uv__epoll_create(void);
+int uv__epoll_create(int size);
int uv__epoll_create1(int flags);
int uv__epoll_ctl(int epfd, int op, int fd, struct uv__epoll_event *ev);
int uv__epoll_wait(int epfd,

0 comments on commit 3c526cb

Please sign in to comment.