]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
depend on libkqueue define, not __linux__.
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 May 2023 22:04:13 +0000 (18:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 20 May 2023 22:04:13 +0000 (18:04 -0400)
As some versions of libkqueue might not have the define

src/lib/util/event.c

index ba03c7f335bdeafe9c7aa40088336cbf552f57f3..1fbaa91eeb317797f046600c71f31d72d7a187d3 100644 (file)
@@ -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