]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix libsupport xsigstack build
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Jan 2019 11:36:25 +0000 (09:36 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 24 Jan 2019 11:38:49 +0000 (09:38 -0200)
Hurd does not support MAP_NORESERVE and MAP_STACK.

Checked on i686-gnu build.

* support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
are not defined.

ChangeLog
support/xsigstack.c

index dfad23b0c53c5c405dd906082eba2ca302f68181..af78b366f5e61b5853280f963c3d6ff2cd3cd5eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+       * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
+       are not defined.
+
        [BZ #24122]
        * elf/Makefile (tests): Add tst-audit13.
        (modules-names): Add tst-audit13mod1.
index cebfa19aa59d1a6bc11a42ff9f23041a8fc0e579..45ad41e8f9f60c4f449420719e7dcf265f35f18a 100644 (file)
 #include <sys/mman.h>
 #include <sys/param.h> /* roundup, MAX */
 
+#ifndef MAP_NORESERVE
+# define MAP_NORESERVE 0
+#endif
+#ifndef MAP_STACK
+# define MAP_STACK 0
+#endif
+
 /* The "cookie" returned by xalloc_sigstack points to one of these
    structures.  */
 struct sigstack_desc