From: Nick Porter Date: Mon, 12 Feb 2024 15:34:05 +0000 (+0000) Subject: Allow for differing versions of ub_event_callback_type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ca291bb26d8f098fe99cdfed43850e8fa4f7d8;p=thirdparty%2Ffreeradius-server.git Allow for differing versions of ub_event_callback_type --- diff --git a/src/modules/rlm_unbound/rlm_unbound.c b/src/modules/rlm_unbound/rlm_unbound.c index 582ec5d3faa..ef2bfecca63 100644 --- a/src/modules/rlm_unbound/rlm_unbound.c +++ b/src/modules/rlm_unbound/rlm_unbound.c @@ -97,7 +97,12 @@ static int _unbound_request_free(unbound_request_t *ur) * @param rate_limited Was the request rate limited due to unbound workload */ static void xlat_unbound_callback(void *mydata, int rcode, void *packet, int packet_len, int sec, - char *why_bogus, UNUSED int rate_limited) + char *why_bogus +#if UNBOUND_VERSION_MAJOR > 1 || (UNBOUND_VERSION_MAJOR == 1 && UNBOUND_VERSION_MINOR > 7) + , UNUSED int rate_limited +#endif + ) + { unbound_request_t *ur = talloc_get_type_abort(mydata, unbound_request_t); request_t *request = ur->request;