From: Avik Sil Date: Thu, 15 Mar 2012 12:22:02 +0000 (-0400) Subject: Fix: Redefine MAP_STACK to 0 if not defined by the architecture X-Git-Tag: v2.0.0-rc3~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e4035fc898a56dc606ba8f5ce856763860d0309;p=lttng-tools.git 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 --- 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