freebsd: do not use MAP_STACK
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 15:31:54 +0000 (10:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Feb 2012 15:31:54 +0000 (10:31 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/common/runas.c

index ddb2f18bf62c34f3508dfbae8c0a1d080dec4c69..88ed773152cc7c959b81084fb58a93ee9c3409ae 100644 (file)
 
 #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
-#define GROWSDOWN              0
+#define MAP_GROWSDOWN          0
 #endif
 
 #ifndef MAP_ANONYMOUS
This page took 0.026142 seconds and 4 git commands to generate.