Browse code

auth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does not contain one already.

Paris Stamatopoulos authored on 23/10/2020 20:57:49
Showing 1 changed files
... ...
@@ -42,6 +42,9 @@
42 42
 #else
43 43
 #include <freeradius-client.h>
44 44
 #define DEFAULT_RADIUSCLIENT_CONF ""
45
+#ifndef VENDOR
46
+#define VENDOR(x) (((x) >> 16) & 0xffff)
47
+#endif
45 48
 #endif
46 49
 
47 50