Module: kamailio
Branch: 5.3
Commit: f47e3f58fc3ac82497391f8c859d03aaaab7f8ac
URL:
https://github.com/kamailio/kamailio/commit/f47e3f58fc3ac82497391f8c859d03a…
Author: Paris Stamatopoulos <paris(a)forin.gr>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-10-28T17:57:54Z
auth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does not
contain one already.
(cherry picked from commit 9978e00405cac89cc65d2d8a863128dd2814d7fd)
---
Modified: src/modules/misc_radius/radius.h
---
Diff:
https://github.com/kamailio/kamailio/commit/f47e3f58fc3ac82497391f8c859d03a…
Patch:
https://github.com/kamailio/kamailio/commit/f47e3f58fc3ac82497391f8c859d03a…
---
diff --git a/src/modules/misc_radius/radius.h b/src/modules/misc_radius/radius.h
index 120bb80caa..c5e9525715 100644
--- a/src/modules/misc_radius/radius.h
+++ b/src/modules/misc_radius/radius.h
@@ -42,6 +42,9 @@
#else
#include <freeradius-client.h>
#define DEFAULT_RADIUSCLIENT_CONF ""
+#ifndef VENDOR
+#define VENDOR(x) (((x) >> 16) & 0xffff)
+#endif
#endif