From 433970a3ed074e101da488f0ec6b349daeac9f2e Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 20 May 2023 18:04:13 -0400 Subject: [PATCH] depend on libkqueue define, not __linux__. As some versions of libkqueue might not have the define --- src/lib/util/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/event.c b/src/lib/util/event.c index ba03c7f335b..1fbaa91eeb3 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -2817,7 +2817,7 @@ static int _event_build_indexes(UNUSED void *uctx) return 0; } -#ifdef __linux__ +#ifdef EVFILT_LIBKQUEUE /** kqueue logging wrapper function * */ @@ -2899,7 +2899,7 @@ fr_event_list_t *fr_event_list_alloc(TALLOC_CTX *ctx, fr_event_status_cb_t statu * function is called. */ fr_atexit_global_once_ret(&ret, _event_build_indexes, _event_free_indexes, NULL); -#ifdef __linux__ +#ifdef EVFILT_LIBKQUEUE fr_atexit_global_once_ret(&ret, _event_kqueue_logging, _event_kqueue_logging_stop, NULL); #endif -- 2.47.3