header: don't include Winsock2.h and Windows.h
This commit is contained in:
parent
0904888163
commit
4263397ef1
@ -1,9 +1,6 @@
|
||||
#ifndef EPOLL_H_
|
||||
#define EPOLL_H_
|
||||
|
||||
#include <WinSock2.h>
|
||||
#include <Windows.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#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,
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user