From a6e872db4575b06fe26c7b7149ef077100383786 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 27 Jul 2026 13:21:48 +0000 Subject: [PATCH] src: link compat_enable_pipe2 into the main epoll-shim target kqueue_event.c and epollfd_ctx.c call pipe2() unconditionally, and add_compat_target(pipe2 "APPLE") already builds a working compat_pipe2() for exactly that case, but the resulting compat_enable_pipe2 interface target was never actually linked into epoll-shim itself (only into the test binaries, via test/CMakeLists.txt) -- unlike its sibling compat_enable_kqueue1/ ppoll/itimerspec/sigops targets, which all are. Apple's linker doesn't lazily defer non-weak undefined symbols, so this should be a hard link failure for the main library on Darwin as it stands. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01U6fuL1PtRJHhr97gAGyS1h --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bd3000e..5bdd5b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,6 +115,7 @@ target_link_libraries( $ $ $ + $ $ $) if(HAVE_TIMERFD)