Ruslan Babayev wrote:
> This fixes the portable LibreSSL build on Linux with GCC5 for MIPS64.

Is __GNUC_PREREQ__ from /usr/include/sys/cdefs.h in other OSs? If not,
you could probably just add it to the LibreSSL portability headers. It's
probably the easiest and most readable solution if these sorts of
preproc conditions exist in more than one place.

> Index: lib/libssl/src/crypto/bn/bn_lcl.h
> ===================================================================
> RCS file: /cvs/src/lib/libssl/src/crypto/bn/bn_lcl.h,v
> retrieving revision 1.21
> diff -r1.21 bn_lcl.h
> 262c262
> < #   if __GNUC__>=4 && __GNUC_MINOR__>=4 /* "h" constraint is no more since 
> 4.4 */
> ---
> > #   if __GNUC__>=4 && __GNUC_MINOR__>=4 || __GNUC__>=5 /* "h" constraint is 
> > no more since 4.4 */

Reply via email to