include <sys/exec_elf.h> if it's available.

This fixes the auxval logic on NetBSD.
This commit is contained in:
Roland C. Dowdeswell
2019-11-18 20:04:44 +00:00
committed by Nico Williams
parent ba5bb07495
commit a8b749685c
2 changed files with 5 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ AC_CHECK_HEADERS([\
sys/auxv.h \
sys/bswap.h \
sys/errno.h \
sys/exec_elf.h \
sys/ioctl.h \
sys/mman.h \
sys/param.h \

View File

@@ -40,6 +40,10 @@
#include <sys/auxv.h>
#endif
#ifdef HAVE_SYS_EXEC_ELF_H
#include <sys/exec_elf.h>
#endif
#ifndef HAVE_AUXV_T
/*
* Illumos defines auxv_t per the ABI standards, but all other OSes seem