From: Mathieu Desnoyers Date: Thu, 23 Feb 2012 15:12:05 +0000 (-0500) Subject: runas: freebsd compat for mmap flags X-Git-Tag: v2.0.0-rc3~34 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a5ae566aaff1a5f9cb85cb2dadd520ab8be9a214;p=lttng-tools.git runas: freebsd compat for mmap flags Signed-off-by: Mathieu Desnoyers --- diff --git a/src/common/runas.c b/src/common/runas.c index cdc9cb79e..ddb2f18bf 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -42,6 +42,14 @@ #define MAP_STACK 0 #endif +#ifndef MAP_GROWSDOWN +#define GROWSDOWN 0 +#endif + +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + struct run_as_data { int (*cmd)(void *data); void *data;