void-packages/srcpkgs/nettle/patches/musl-ppc-use-auxval.patch

22 lines
552 B
Diff

This ensures that efficient capability checks are used on musl.
--- fat-ppc.c
+++ fat-ppc.c
@@ -42,12 +42,10 @@
#if defined(_AIX)
# include <sys/systemcfg.h>
-#elif defined(__linux__) && defined(__GLIBC__) && defined(__GLIBC_PREREQ)
-# if __GLIBC_PREREQ(2, 16)
-# define USE_GETAUXVAL 1
-# include <asm/cputable.h>
-# include <sys/auxv.h>
-# endif
+#elif defined(__linux__)
+# define USE_GETAUXVAL 1
+# include <asm/cputable.h>
+# include <sys/auxv.h>
#elif defined(__FreeBSD__)
# include <machine/cpu.h>
# ifdef PPC_FEATURE2_HAS_VEC_CRYPTO