diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | support/xsigstack.c | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -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. diff --git a/support/xsigstack.c b/support/xsigstack.c index cebfa19..45ad41e 100644 --- a/support/xsigstack.c +++ b/support/xsigstack.c @@ -26,6 +26,13 @@ #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 |