projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
freebsd: do not use MAP_STACK
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index ddb2f18bf62c34f3508dfbae8c0a1d080dec4c69..88ed773152cc7c959b81084fb58a93ee9c3409ae 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-38,12
+38,16
@@
#define RUNAS_CHILD_STACK_SIZE 10485760
#define RUNAS_CHILD_STACK_SIZE 10485760
-#ifndef MAP_STACK
-#define MAP_STACK 0
+#ifndef __FreeBSD__
+# ifndef MAP_STACK
+# define MAP_STACK 0
+# endif
+#else /* FreeBSD MAP_STACK always return -ENOMEM */
+# define MAP_STACK 0
#endif
#ifndef MAP_GROWSDOWN
#endif
#ifndef MAP_GROWSDOWN
-#define
GROWSDOWN
0
+#define
MAP_GROWSDOWN
0
#endif
#ifndef MAP_ANONYMOUS
#endif
#ifndef MAP_ANONYMOUS
This page took
0.02367 seconds
and
4
git commands to generate.