From: Mathieu Desnoyers Date: Sat, 26 May 2012 15:00:16 +0000 (-0400) Subject: freebsd 8.2 fix: define MAP_ANONYMOUS for compatibility X-Git-Tag: v0.7.3~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0d0cf93f74adf0367b3f9d007351984e91d6e91f;p=userspace-rcu.git freebsd 8.2 fix: define MAP_ANONYMOUS for compatibility Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfhash-mm-mmap.c b/rculfhash-mm-mmap.c index 4554ed6..3cc3fa0 100644 --- a/rculfhash-mm-mmap.c +++ b/rculfhash-mm-mmap.c @@ -24,6 +24,10 @@ #include #include "rculfhash-internal.h" +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + /* reserve inaccessible memory space without allocation any memory */ static void *memory_map(size_t length) {