include <sys/exec_elf.h> if it's available.
authorRoland C. Dowdeswell <roland.dowdeswell@twosigma.com>
Mon, 18 Nov 2019 20:04:44 +0000 (20:04 +0000)
committerNico Williams <nico@cryptonector.com>
Mon, 18 Nov 2019 20:20:19 +0000 (14:20 -0600)
This fixes the auxval logic on NetBSD.

cf/roken-frag.m4
lib/roken/getauxval.h

index 8c567677a9310762dba4d86736d2049f954ab14a..1f53347a880c1e80983e393f6ac8df27a1f444c0 100644 (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                             \
index e5b96e2a0c42269c236a2bce49ef1382ccfe8320..3088f0cd49b083835ef803dabc5969b64bd60d7f 100644 (file)
 #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