From a8b749685c77b997de89e197d1214ea261b7a65a Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Mon, 18 Nov 2019 20:04:44 +0000 Subject: [PATCH] include if it's available. This fixes the auxval logic on NetBSD. --- cf/roken-frag.m4 | 1 + lib/roken/getauxval.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cf/roken-frag.m4 b/cf/roken-frag.m4 index 8c567677a..1f53347a8 100644 --- a/cf/roken-frag.m4 +++ b/cf/roken-frag.m4 @@ -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 \ diff --git a/lib/roken/getauxval.h b/lib/roken/getauxval.h index e5b96e2a0..3088f0cd4 100644 --- a/lib/roken/getauxval.h +++ b/lib/roken/getauxval.h @@ -40,6 +40,10 @@ #include #endif +#ifdef HAVE_SYS_EXEC_ELF_H +#include +#endif + #ifndef HAVE_AUXV_T /* * Illumos defines auxv_t per the ABI standards, but all other OSes seem