From 3367acdb344a1d7fcf8f53748d301d652c8911dd Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 24 Jan 2019 09:36:25 -0200 Subject: 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. --- support/xsigstack.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'support') 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 #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 -- cgit 1.4.1