From 0a3017142e2cd480eae60ec7e6d8dd529efa825d Mon Sep 17 00:00:00 2001 From: Andrew Johnston Date: Thu, 5 Mar 2026 01:01:38 +0000 Subject: [PATCH] chore: remove build flag - use kevent64 on macos/64bit --- CMakeLists.txt | 5 ----- src/unix/internal.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 905ca8e15..06974ea6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/src/unix/internal.h b/src/unix/internal.h index 85acb90c9..fc7f6d5a2 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -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