Skip to content

Commit

Permalink
fix linux compiler for epoll
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Dec 2, 2024
1 parent b38854c commit 6d5ac32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions util/include/util/tc_epoller.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@
#include <functional>

#if TARGET_PLATFORM_IOS
#include "sys/event.h"
#include <sys/event.h>

const int EPOLLIN = 0x0001;
const int EPOLLOUT = 0x0004;
const int EPOLLERR = 0x0008;

typedef kevent64_s epoll_event;

// #else
// #include "sys/epoll.h"
#endif

#if TARGET_PLATFORM_LINUX
#include <sys/epoll.h>
#endif

#if TARGET_PLATFORM_WINDOWS
Expand Down

0 comments on commit 6d5ac32

Please sign in to comment.