This patch fixes build error on architectures (e.g., armel, armhf) that do not 
define MAP_STACK.

---
 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


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to