Fix: Redefine MAP_STACK to 0 if not defined by the architecture
authorAvik Sil <avik.sil@linaro.org>
Thu, 15 Mar 2012 12:22:02 +0000 (08:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Mar 2012 12:22:02 +0000 (08:22 -0400)
This patch fixes build error on architectures (e.g., armel, armhf) that
do not define MAP_STACK.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/runas.c

index e230774df442134ddbf45185a080806c4974f85f..7de566ddb9fce211bb0db34d3c95c24a7cf6b3af 100644 (file)
 
 #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
This page took 0.02563 seconds and 4 git commands to generate.