diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-01-24 09:36:25 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-01-24 09:38:49 -0200 |
commit | 3367acdb344a1d7fcf8f53748d301d652c8911dd (patch) | |
tree | 8b116e73a72bffb26d01761533a95f5a1024d0ad /support | |
parent | elf: Fix LD_AUDIT for modules with invalid version (BZ#24122) (diff) | |
download | glibc-3367acdb344a1d7fcf8f53748d301d652c8911dd.tar.gz glibc-3367acdb344a1d7fcf8f53748d301d652c8911dd.tar.bz2 glibc-3367acdb344a1d7fcf8f53748d301d652c8911dd.zip |
hurd: Fix libsupport xsigstack build
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.
Diffstat (limited to 'support')
-rw-r--r-- | support/xsigstack.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support/xsigstack.c b/support/xsigstack.c index cebfa19aa5..45ad41e8f9 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 |