Cristian Rodríguez wrote:
> El 12/09/13 14:17, Yuriy Kaminskiy escribió:
> 
>> This will break on glibc-3.0.
>>
>> #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
> 
> Yes, that is the correct way, but ensure <features.h> is being included.

(it seems this patch will be rejected for different reasons anyway, but to avoid
replicating bad recipes...)

... unfortunately, condition above won't work properly too, sorry :-(

When __GLIBC_PREREQ is not defined, preprocessor will error out. So, it should
be either

#if defined(__GLIBC__) && ((__GLIBC__<<16) | __GLIBC_MINOR__) >= ((2<<16) | 16)

or, indeed, replaced with configure check for <sys/auxv.h> header (but openssl's
[cC]onfigure lacks infrastructure for header presence checks).
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to