From e21193ea4abf7d93112b8ad3144ba11484d623c6 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 21 Feb 2012 13:12:20 -0500 Subject: [PATCH] Fix FreeBSD support for rculfhash mmap Signed-off-by: David Goulet --- src/common/hashtable/rculfhash-mm-mmap.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.34.1