A small patch for building on Solaris and Illumos

Ian Collins ian at ianshome.com
Sun Mar 23 23:14:17 CET 2014


Arran Cudbard-Bell wrote:
> On 23 Mar 2014, at 20:34, Ian Collins <ian at ianshome.com> wrote:
>
>> Hello,
>>
>> I would like to submit a small patch to enable clean building of 2.2.4 on Solaris 11 and Illumos.  Only two small changes are required:
>>
>> src/include/sysutmp.h:
>>
>> Line 17:
>> -#if !defined(sun) && !defined(sgi) && !defined(hpux)
>> +#if !defined(__sun) && !defined(sgi) && !defined(hpux)
> Out of interest what's the significant of __sun over sun or __sun__?

__sun is defined by both gcc and Solaris Studio compilers, it is the 
recognised macro for detecting Solaris.

-- 
Ian.



More information about the Freeradius-Devel mailing list