projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: take RCU read-side lock within hash table functions
[lttng-tools.git]
/
src
/
common
/
hashtable
/
rculfhash-mm-mmap.c
diff --git
a/src/common/hashtable/rculfhash-mm-mmap.c
b/src/common/hashtable/rculfhash-mm-mmap.c
index 4554ed6007f20df68bfac3f2fe74a5a9e39c55fc..cd415dbde91934c6ff2c79ad410bce97e3582183 100644
(file)
--- a/
src/common/hashtable/rculfhash-mm-mmap.c
+++ b/
src/common/hashtable/rculfhash-mm-mmap.c
@@
-20,10
+20,16
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <unistd.h>
#include <sys/mman.h>
#include "rculfhash-internal.h"
#include <unistd.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.022944 seconds
and
4
git commands to generate.