MAP_ANON

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 15 13:36:15 PST 2015


On Sunday, 15 February 2015 at 21:26:27 UTC, Andrei Alexandrescu 
wrote:
> Building Phobos yields:
>
> std/mmfile.d(332): Deprecation: alias 
> core.sys.posix.sys.mman.MAP_ANON is deprecated - Please use 
> core.sys.osx.sys.mman for non-POSIX extensions
>
> What is the right fix here?

The line above the faulting one is:

version(linux) import core.sys.linux.sys.mman : MAP_ANON;

I imagine the fix would be along the same line :)

version(OSX) import core.sys.osx.sys.mman : MAP_ANON;

std.mmfile is one of the legacy modules, in good need of a 
rewrite or overhaul.


More information about the Digitalmars-d mailing list