From: Alan T. DeKok Date: Thu, 4 Jun 2020 12:55:01 +0000 (-0400) Subject: fixes for libkqueue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=577dd5359eeddda19481bec56a5a18763495ff5d;p=thirdparty%2Ffreeradius-server.git fixes for libkqueue --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 0541a467f5c..bc775d3f1bf 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -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)) {