From 8c3ed6ac0428c4fe7031b8f3ca5c1eebcea65859 Mon Sep 17 00:00:00 2001 From: Alexander Tsoy Date: Sun, 18 Oct 2015 15:38:09 +0300 Subject: [PATCH] Add support for freeradius-client radiusclient-ng (mentioned in docs as radiusclient 0.4.0 and above) is no longer maintained upstream. It was superseded by freeradius-client. The API is mostly compatible. Header name has changed and the library name has changed. --- src/src/EDITME | 3 +++ src/src/auths/call_radius.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/src/EDITME b/src/src/EDITME index c2d95ff40c..7f69dc1edc 100644 --- a/src/src/EDITME +++ b/src/src/EDITME @@ -940,6 +940,9 @@ ZCAT_COMMAND=/usr/bin/zcat # RADIUSCLIENT is the radiusclient library; you probably need to add # -lradiusclient to EXTRALIBS. # +# RADIUSCLIENTNEW is the freeradius-client library; you probably need to add +# -lfreeradius-client to EXTRALIBS. +# # The API for the radiusclient library was changed at release 0.4.0. # Unfortunately, the header file does not define a version number that clients # can use to support both the old and new APIs. If you are using version 0.4.0 diff --git a/src/src/auths/call_radius.c b/src/src/auths/call_radius.c index 1201078dca..f85443f7aa 100644 --- a/src/src/auths/call_radius.c +++ b/src/src/auths/call_radius.c @@ -38,7 +38,11 @@ using its original API. At release 0.4.0 the API changed. */ #if !defined(RADIUS_LIB_RADIUSCLIENT) && !defined(RADIUS_LIB_RADIUSCLIENTNEW) #define RADIUS_LIB_RADIUSCLIENT #endif + #ifdef RADIUS_LIB_RADIUSCLIENTNEW + #include + #else #include + #endif #endif