Permalink
Browse files

Make madvise work on older cygwin's too

  • Loading branch information...
1 parent d281d3b commit cdc7f60250412a34f8307e05f741792292e35c7c @Leont committed Apr 5, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 Changes
  2. +1 −0 lib/File/Map.xs
View
@@ -1,6 +1,7 @@
Revision history for File-Map
{{$NEXT}}
+ Fix madvice on old cygwin versions
0.47 2012-04-04 23:17:55 Europe/Amsterdam
Restore fileno in sys_map; this fixes #76253: non-anonymous sys_map was useable since e102d034
View
@@ -16,6 +16,7 @@
#ifdef __CYGWIN__
# undef WIN32
# undef _WIN32
+# define madvise posix_madvise
#endif
#include <assert.h>

0 comments on commit cdc7f60

Please sign in to comment.