[lttng-dev] [PATCH] Redefine MAP_STACK to 0 if not defined by the architecture

Avik Sil avik.sil at linaro.org
Thu Mar 15 06:10:30 EDT 2012


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




More information about the lttng-dev mailing list