[lttng-dev] [PATCH] Redefine MAP_STACK to 0 if not defined by the architecture
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Thu Mar 15 08:20:38 EDT 2012
* Avik Sil (avik.sil at linaro.org) wrote:
> This patch fixes build error on architectures (e.g., armel, armhf) that do not define MAP_STACK.
>
merged, thanks!
Mathieu
> ---
> src/common/runas.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/src/common/runas.c b/src/common/runas.c
> index e230774..7de566d 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
> --
> 1.7.5.4
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list