From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 17:47:28 +0000 (-0400) Subject: Add MAP_ANONYMOUS mapping to MAP_ANON for BSD build X-Git-Tag: v0.6.4~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4c1ae2ea760611f4d2b658b4e6b374f597c1c1f9;p=userspace-rcu.git Add MAP_ANONYMOUS mapping to MAP_ANON for BSD build Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-bp.c b/urcu-bp.c index 203642c..543a9f3 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -41,6 +41,10 @@ /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #include "urcu-bp.h" +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + /* Sleep delay in us */ #define RCU_SLEEP_DELAY 1000 #define ARENA_INIT_ALLOC 16