projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c77fc10
)
Fix: Redefine MAP_STACK to 0 if not defined by the architecture
author
Avik Sil
<avik.sil@linaro.org>
Thu, 15 Mar 2012 12:22:02 +0000
(08:22 -0400)
committer
Mathieu 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
patch
|
blob
|
blame
|
history
diff --git
a/src/common/runas.c
b/src/common/runas.c
index e230774df442134ddbf45185a080806c4974f85f..7de566ddb9fce211bb0db34d3c95c24a7cf6b3af 100644
(file)
--- 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
This page took
0.02563 seconds
and
4
git commands to generate.