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