chore: remove build flag - use kevent64 on macos/64bit
This commit is contained in:
parent
c69dc66bd6
commit
0a3017142e
@ -46,11 +46,6 @@ option(MSAN "Enable MemorySanitizer (MSan)" OFF)
|
||||
option(TSAN "Enable ThreadSanitizer (TSan)" OFF)
|
||||
option(UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
|
||||
|
||||
option(USE_EV64 "Enable event64 support with fast return" OFF)
|
||||
if(APPLE AND USE_EV64)
|
||||
add_compile_definitions(EV64)
|
||||
endif()
|
||||
|
||||
if(MSAN AND NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang")
|
||||
message(SEND_ERROR "MemorySanitizer requires clang. Try again with -DCMAKE_C_COMPILER=clang")
|
||||
endif()
|
||||
|
||||
@ -451,7 +451,7 @@ int uv__iou_fs_unlink(uv_loop_t* loop, uv_fs_t* req);
|
||||
int uv___stream_fd(const uv_stream_t* handle);
|
||||
#define uv__stream_fd(handle) (uv___stream_fd((const uv_stream_t*) (handle)))
|
||||
|
||||
#if defined(EV64) && defined(__LP64__) && !defined(__i386__)
|
||||
#if defined(__LP64__) && !defined(__i386__)
|
||||
#define SET_EVENT(a, b, c, d, e) EV_SET64(a, b, c, d, e, 0, 0, 0, 0)
|
||||
#define KEVENT(a, b, c, d, e, f, g) kevent64(a, b, c, d, e, f, g)
|
||||
#define KEVENT_S struct kevent64_s
|
||||
|
||||
Loading…
Reference in New Issue
Block a user