Here is a patch for freeradius-0.4 source tree, allowing C++ programs including 
libradius.h to compile and link successfully with libradius.a

reminder :
freeradius use a parameter named 'operator', but 'operator' is a C++ keyword --> 
'operator' has been renamed to 'Operator'
Also, prototypes in libradius.h are now enclosed by an extern "C" declaration.

The patch can be applied with the following command in the directory which holds 
freeradius-0.4 source tree :
patch -p0 -r freeradius-0.4 < freeradius-0.4__link_C++_progs_with_libradius.patch

-- 
Cyrille

Attachment: =?iso-8859-1?Q?freeradius-0.4=5F=5Flink=5FC++=5Fprogs=5Fwith=5Flibradius.patch?=
Description: Binary data

Reply via email to