From: Alan T. DeKok Date: Sat, 20 May 2023 22:04:13 +0000 (-0400) Subject: depend on libkqueue define, not __linux__. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=433970a3ed07;p=thirdparty%2Ffreeradius-server.git depend on libkqueue define, not __linux__. As some versions of libkqueue might not have the define --- 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