Skip to content
Browse files

Merge pull request #2 from lemenkov/fix_for_linux

No MAP_NOCACHE on Linux
  • Loading branch information...
2 parents 65bc24a + c9c6e02 commit f7a525f3d44fd96224ecb4c9bf06f36724da0837 @krestenkrab committed
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;

0 comments on commit f7a525f

Please sign in to comment.
Something went wrong with that request. Please try again.