Skip to content

Commit

Permalink
Make madvise work on older cygwin's too
Browse files Browse the repository at this point in the history
  • Loading branch information
Leont committed Apr 23, 2012
1 parent d281d3b commit cdc7f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@
Revision history for File-Map Revision history for File-Map


{{$NEXT}} {{$NEXT}}
Fix madvice on old cygwin versions


0.47 2012-04-04 23:17:55 Europe/Amsterdam 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 Restore fileno in sys_map; this fixes #76253: non-anonymous sys_map was useable since e102d034
Expand Down
1 change: 1 addition & 0 deletions lib/File/Map.xs
Expand Up @@ -16,6 +16,7 @@
#ifdef __CYGWIN__ #ifdef __CYGWIN__
# undef WIN32 # undef WIN32
# undef _WIN32 # undef _WIN32
# define madvise posix_madvise
#endif #endif


#include <assert.h> #include <assert.h>
Expand Down

0 comments on commit cdc7f60

Please sign in to comment.