diff --git a/include/epoll.h b/include/epoll.h index cc292ab..412f8f0 100644 --- a/include/epoll.h +++ b/include/epoll.h @@ -1,9 +1,6 @@ #ifndef EPOLL_H_ #define EPOLL_H_ -#include -#include - #include #define EPOLLIN 0x001 @@ -32,9 +29,8 @@ typedef union epoll_data { int fd; uint32_t u32; uint64_t u64; - /* Windows-specific extensions. */ - SOCKET sock; - HANDLE hnd; + /* SOCKET */ uintptr_t sock; + /* HANDLE */ void* hnd; } epoll_data_t; struct epoll_event { @@ -48,7 +44,7 @@ int epoll_close(epoll_t epoll_hnd); int epoll_ctl(epoll_t epoll_hnd, int op, - SOCKET sock, + /* SOCKET */ uintptr_t sock, struct epoll_event* event); int epoll_wait(epoll_t epoll_hnd, diff --git a/src/epoll.c b/src/epoll.c index 604cb76..7e722fa 100644 --- a/src/epoll.c +++ b/src/epoll.c @@ -119,7 +119,7 @@ epoll_t epoll_create() { int epoll_ctl(epoll_t port_handle, int op, - SOCKET sock, + uintptr_t sock, struct epoll_event* ev) { epoll_port_data_t* port_data; SOCKET base_sock;