From 1e4035fc898a56dc606ba8f5ce856763860d0309 Mon Sep 17 00:00:00 2001 From: Avik Sil Date: Thu, 15 Mar 2012 08:22:02 -0400 Subject: [PATCH] Fix: Redefine MAP_STACK to 0 if not defined by the architecture This patch fixes build error on architectures (e.g., armel, armhf) that do not define MAP_STACK. Signed-off-by: Mathieu Desnoyers --- src/common/runas.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/runas.c b/src/common/runas.c index e230774df..7de566ddb 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -38,6 +38,10 @@ #define RUNAS_CHILD_STACK_SIZE 10485760 +#ifndef MAP_STACK +#define MAP_STACK 0 +#endif + #ifdef __FreeBSD__ /* FreeBSD MAP_STACK always return -ENOMEM */ #define LTTNG_MAP_STACK 0 -- 2.34.1