]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow for differing versions of ub_event_callback_type
authorNick Porter <nick@portercomputing.co.uk>
Mon, 12 Feb 2024 15:34:05 +0000 (15:34 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 12 Feb 2024 15:34:05 +0000 (15:34 +0000)
src/modules/rlm_unbound/rlm_unbound.c

index 582ec5d3faa3853e2fa080a2378179bc00f26467..ef2bfecca6318cda68da140ec7112f8912cdec95 100644 (file)
@@ -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;