Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

No MAP_NOCACHE on Linux #2

Merged
merged 1 commit into from

2 participants

@lemenkov

Unfortunately, no MAP_NOCACHE option is available in Linux. So we should either silently ignore it (as I've done in this patch) or raise something (which will cause portability issues).

Signed-off-by: Peter Lemenkov lemenkov@gmail.com

@lemenkov lemenkov No MAP_NOCACHE on Linux
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
c9c6e02
@krestenkrab krestenkrab merged commit f7a525f into krestenkrab:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 13, 2012
  1. @lemenkov

    No MAP_NOCACHE on Linux

    lemenkov authored
    Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 c_src/emmap.cpp
View
5 c_src/emmap.cpp
@@ -9,6 +9,11 @@
static ErlNifResourceType* MMAP_RESOURCE;
+#ifndef MAP_NOCACHE
+/* No MAP_NOCACHE on Linux - just bypass this option */
+#define MAP_NOCACHE (0)
+#endif
+
typedef struct
{
size_t position;
Something went wrong with that request. Please try again.