From: David Goulet Date: Tue, 21 Feb 2012 18:12:20 +0000 (-0500) Subject: Fix FreeBSD support for rculfhash mmap X-Git-Tag: v2.0.0-rc3~53 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=31ce52486ee666ff4bcdd033e94cfd9fd153cf8b;p=lttng-tools.git Fix FreeBSD support for rculfhash mmap Signed-off-by: David Goulet --- diff --git a/src/common/hashtable/rculfhash-mm-mmap.c b/src/common/hashtable/rculfhash-mm-mmap.c index 4554ed600..b136e1ae0 100644 --- a/src/common/hashtable/rculfhash-mm-mmap.c +++ b/src/common/hashtable/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) {