projects
/
ocaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
691e297
)
Check for definition of AT_SECURE before using it
author
Stephane Glondu
<steph@glondu.net>
Wed, 24 Jul 2019 07:08:39 +0000
(09:08 +0200)
committer
Stéphane Glondu
<glondu@debian.org>
Fri, 24 Jul 2020 14:51:04 +0000
(16:51 +0200)
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
otherlibs/unix/envir.c
patch
|
blob
|
history
diff --git
a/otherlibs/unix/envir.c
b/otherlibs/unix/envir.c
index 3ad4b9caa0206e42a042408449a6687890303f7e..bdc41939bc2874b834cd202aa7c7876f5e594de0 100644
(file)
--- 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)
{
-#if
def HAS_GETAUXVAL
+#if
defined(HAS_GETAUXVAL) && defined(AT_SECURE)
if (!getauxval(AT_SECURE))
return environ;
else