mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Fix pg_popcount_aarch64.c to build with ancient glibc releases.
Like commit6d969ca68, except here we are mopping up after519338ace. (There are no other uses of <sys/auxv.h> in the tree, so we should be done now.) Reported-by: GaoZengqi <pgf00a@gmail.com> Author: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAFmBtr3Av62-jBzdhFkDHXJF9vQmNtSnH2upwODjnRcsgdTytw@mail.gmail.com Backpatch-through: 18
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
|
||||
#if defined(HAVE_ELF_AUX_INFO) || defined(HAVE_GETAUXVAL)
|
||||
#include <sys/auxv.h>
|
||||
/* Ancient glibc releases don't include the HWCAPxxx macros in sys/auxv.h */
|
||||
#if defined(__linux__) && !defined(HWCAP_SVE)
|
||||
#include <asm/hwcap.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user