summaryrefslogtreecommitdiff
path: root/support/xsigstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/xsigstack.c')
-rw-r--r--support/xsigstack.c7
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