From: Stephane Glondu Date: Wed, 24 Jul 2019 07:08:39 +0000 (+0200) Subject: Check for definition of AT_SECURE before using it X-Git-Tag: archive/raspbian/4.08.1-10+rpi1^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b3e9b419304b9e7d3bae564238bba3ab11b74f09;p=ocaml.git Check for definition of AT_SECURE before using it This fixes compilation on kfreebsd-*. Forwarded: https://github.com/ocaml/ocaml/pull/8842 Gbp-Pq: Name 0005-Check-for-definition-of-AT_SECURE-before-using-it.patch --- diff --git a/otherlibs/unix/envir.c b/otherlibs/unix/envir.c index 3ad4b9ca..bdc41939 100644 --- a/otherlibs/unix/envir.c +++ b/otherlibs/unix/envir.c @@ -39,7 +39,7 @@ CAMLprim value unix_environment_unsafe(value unit) static char **secure_environ(void) { -#ifdef HAS_GETAUXVAL +#if defined(HAS_GETAUXVAL) && defined(AT_SECURE) if (!getauxval(AT_SECURE)) return environ; else