From: Niels Möller Date: Sun, 10 Jan 2021 19:39:49 +0000 (+0100) Subject: ppc: Fix use of __GLIBC_PREREQ in fat-ppc.c. X-Git-Tag: nettle_3.7.1_release_20210217~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49cb4039be99d2d49f5c97edd22fc47976c34651;p=thirdparty%2Fnettle.git ppc: Fix use of __GLIBC_PREREQ in fat-ppc.c. * fat-ppc.c: Don't use __GLIBC_PREREQ in the same preprocessor conditional as defined(__GLIBC_PREREQ), but move to a nested #if conditional. Fixes compile error on OpenBSD/powerpc64, reported by Jasper Lievisse Adriaanse. --- diff --git a/ChangeLog b/ChangeLog index 578f2591..a5506897 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-01-10 Niels Möller + + * fat-ppc.c: Don't use __GLIBC_PREREQ in the same preprocessor + conditional as defined(__GLIBC_PREREQ), but move to a nested #if + conditional. Fixes compile error on OpenBSD/powerpc64, reported by + Jasper Lievisse Adriaanse. + 2021-01-04 Niels Möller * Released Nettle-3.7. diff --git a/fat-ppc.c b/fat-ppc.c index c7f0d11a..3adbb88c 100644 --- a/fat-ppc.c +++ b/fat-ppc.c @@ -42,11 +42,12 @@ #if defined(_AIX) # include -#elif defined(__linux__) && defined(__GLIBC__) && \ - defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16) -# define USE_GETAUXVAL 1 -# include -# include +#elif defined(__linux__) && defined(__GLIBC__) && defined(__GLIBC_PREREQ) +# if __GLIBC_PREREQ(2, 16) +# define USE_GETAUXVAL 1 +# include +# include +# endif #elif defined(__FreeBSD__) # include # ifdef PPC_FEATURE2_HAS_VEC_CRYPTO