]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fixes for libkqueue
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jun 2020 12:55:01 +0000 (08:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Jun 2020 12:55:01 +0000 (08:55 -0400)
src/lib/util/event.c

index 0541a467f5c5895f4a42ce203ce7d0cbdc193c23..bc775d3f1bfa4fafb1f19e8908544003bd61a3db 100644 (file)
@@ -1427,6 +1427,10 @@ int _fr_event_pid_wait(NDEBUG_LOCATION_ARGS
        ev->line = line;
 #endif
 
+#ifndef NOTE_EXITSTATUS
+#define NOTE_EXITSTATUS (0)
+#endif
+
        EV_SET(&evset, pid, EVFILT_PROC, EV_ADD | EV_ONESHOT, NOTE_EXIT | NOTE_EXITSTATUS, 0, ev);
 
        if (unlikely(kevent(el->kq, &evset, 1, NULL, 0, NULL) < 0)) {