freebsd 8.2 fix: define MAP_ANONYMOUS for compatibility
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 May 2012 15:00:16 +0000 (11:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 26 May 2012 15:00:16 +0000 (11:00 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash-mm-mmap.c

index 4554ed6007f20df68bfac3f2fe74a5a9e39c55fc..3cc3fa01c9d5ed5c16888ae8f02fb85ae65cf1de 100644 (file)
 #include <sys/mman.h>
 #include "rculfhash-internal.h"
 
 #include <sys/mman.h>
 #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)
 {
 /* reserve inaccessible memory space without allocation any memory */
 static void *memory_map(size_t length)
 {
This page took 0.025022 seconds and 4 git commands to generate.