From fd4dd445b709f7af66b2869a698eb2227563e967 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Thu, 21 Nov 2024 18:53:05 -0800 Subject: [PATCH] libev: disable timerfd on macos Problem: macos build fails with struct itimerspec undefined. Disable timerfd on macos to avoid requiring this in libev. --- src/common/libev/ev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/libev/ev.c b/src/common/libev/ev.c index 544cb35b8d29..cc9e57455e55 100644 --- a/src/common/libev/ev.c +++ b/src/common/libev/ev.c @@ -564,6 +564,12 @@ struct signalfd_siginfo # endif #endif +/* disable timerfd on macos */ +#ifdef __APPLE__ +# undef EV_USE_TIMERFD +# define EV_USE_TIMERFD 0 +#endif + /*****************************************************************************/ #if EV_VERIFY >= 3