projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add MAP_ANONYMOUS mapping to MAP_ANON for BSD build
[urcu.git]
/
urcu-bp.c
diff --git
a/urcu-bp.c
b/urcu-bp.c
index 14b200129fe42656ae11e178aa0d3c6442f26061..543a9f3ae01775b18008e4e2140513116bd2e781 100644
(file)
--- a/
urcu-bp.c
+++ b/
urcu-bp.c
@@
-35,12
+35,16
@@
#include <unistd.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/mman.h>
-#include "urcu
-bp-ma
p.h"
+#include "urcu
/map/urcu-b
p.h"
-#include "urcu
-bp-static
.h"
+#include "urcu
/static/urcu-bp
.h"
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
#include "urcu-bp.h"
/* 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
/* Sleep delay in us */
#define RCU_SLEEP_DELAY 1000
#define ARENA_INIT_ALLOC 16
This page took
0.02311 seconds
and
4
git commands to generate.