[iostreams] MAP_FILE not available on some platforms

The iostreams module mapped_file.cpp fails to compile on (at least) Solaris because it makes use of the mmap flag MAP_FILE which does not exist on that platform. I think this should be protected in an #ifdef MAP_FILE block or similar. http://tinyurl.com/4gv9p -- Caleb Epstein caleb dot epstein at gmail dot com

Caleb Epstein wrote:
The iostreams module mapped_file.cpp fails to compile on (at least) Solaris because it makes use of the mmap flag MAP_FILE which does not exist on that platform. I think this should be protected in an #ifdef MAP_FILE block or similar.
I'd say so its not available on SGI and under Linux (RH9) from man mmap: MAP_FILE Compatibility flag. Ignored. IEEE Std 1003.1, 2003 Edition http://www.opengroup.org/onlinepubs/007904975/functions/mmap.html has no mention of it either Kevin -- | Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this | | Senior Technology | My employer for certain | | And Network Systems Architect | Not even myself |

Kevin Wheatley wrote:
Caleb Epstein wrote:
The iostreams module mapped_file.cpp fails to compile on (at least) Solaris because it makes use of the mmap flag MAP_FILE which does not exist on that platform. I think this should be protected in an #ifdef MAP_FILE block or similar.
I'd say so its not available on SGI and under Linux (RH9) from man mmap:
MAP_FILE Compatibility flag. Ignored.
IEEE Std 1003.1, 2003 Edition http://www.opengroup.org/onlinepubs/007904975/functions/mmap.html
has no mention of it either
This seems to be a flag I inherited from Craig Henderson. I've removed it; I'll see how the new version works. Jonathan
participants (3)
-
Caleb Epstein
-
Jonathan Turkanis
-
Kevin Wheatley