Permalink
Browse files

Added mergeable and unmergeable advices for Linux

  • Loading branch information...
1 parent 17b91ef commit 34b22e7aec7ffc2296f656d1f2d55a93815bdf11 @Leont committed Feb 26, 2012
Showing with 7 additions and 0 deletions.
  1. +1 −0 Changes
  2. +6 −0 lib/File/Map.xs
View
@@ -3,6 +3,7 @@ Revision history for File-Map
{{$NEXT}}
Fix madvise on cygwin
Disable advise on VMS
+ Add mergeable and unmergeable advices for Linux
0.45 2012-02-22 20:17:29 Europe/Amsterdam
Replace round() by floor() + 0.5. The former is C99, the latter in C89...
View
@@ -497,6 +497,12 @@ static boot(pTHX) {
#ifdef MADV_DOFORK
ADVISE_CONSTANT("dofork", MADV_DOFORK);
#endif
+#ifdef MADV_MERGEABLE
+ ADVISE_CONSTANT("mergeable", MADV_MERGEABLE);
+#endif
+#ifdef MADV_UNMERGEABLE
+ ADVISE_CONSTANT("unmergeable", MADV_UNMERGEABLE);
+#endif
/* BSD, Mac OS X & Solaris specific advice */
#ifdef MADV_FREE
ADVISE_CONSTANT("free", MADV_FREE);

0 comments on commit 34b22e7

Please sign in to comment.