From: Adhemerval Zanella Date: Thu, 24 Jan 2019 11:36:25 +0000 (-0200) Subject: hurd: Fix libsupport xsigstack build X-Git-Tag: glibc-2.29~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3367acdb344a1d7fcf8f53748d301d652c8911dd;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index dfad23b0c53..af78b366f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2019-01-24 Adhemerval Zanella + * 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 cebfa19aa59..45ad41e8f9f 100644 --- a/support/xsigstack.c +++ b/support/xsigstack.c @@ -26,6 +26,13 @@ #include #include /* 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