Permalink
Browse files

Disable advise on VMS

  • Loading branch information...
1 parent 7f2ece7 commit 17b91ef2ddf117f67a79d332f4d52c345810e7d4 @Leont committed Feb 26, 2012
Showing with 5 additions and 0 deletions.
  1. +1 −0 Changes
  2. +4 −0 lib/File/Map.xs
View
@@ -2,6 +2,7 @@ Revision history for File-Map
{{$NEXT}}
Fix madvise on cygwin
+ Disable advise on VMS
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
@@ -157,6 +157,10 @@ static size_t page_size() {
}
#endif
+#ifdef VMS
+#define madvise(address, length, advice) 0
+#endif
+
#ifndef MADV_NORMAL
# define MADV_NORMAL 0
# define MADV_RANDOM 0

0 comments on commit 17b91ef

Please sign in to comment.