Check for sys/auxv.h header, always include if present

- We'll need this to access any HWCAP_* bits for platforms that need it,
  regardless of whether getauxval() is present or not. On glibc
  systems this is likely to be equivalent, on others dunno (Solaris
  appears to have sys/auxv.h header as well)
This commit is contained in:
Panu Matilainen 2014-06-27 10:11:26 +03:00
parent a69d5b5a1b
commit f8868f11d7
2 changed files with 2 additions and 1 deletions

View File

@ -411,6 +411,7 @@ AC_CHECK_HEADERS(sys/utsname.h)
AC_CHECK_HEADERS(sys/systemcfg.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/auxv.h)
dnl statfs portability fiddles.
dnl

View File

@ -20,7 +20,7 @@
#define __power_pc() 0
#endif
#ifdef HAVE_GETAUXVAL
#ifdef HAVE_SYS_AUXV_H
#include <sys/auxv.h>
#endif