Skip to content

Commit

Permalink
libev: disable timerfd on macos
Browse files Browse the repository at this point in the history
Problem: macos build fails with struct itimerspec undefined.

Disable timerfd on macos to avoid requiring this in libev.
  • Loading branch information
garlick authored and grondo committed Dec 4, 2024
1 parent 435756d commit fd4dd44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/libev/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd4dd44

Please sign in to comment.