[MPlayer-dev-eng] man_anonymous

Trent Piepho xyzzy at speakeasy.org
Thu Mar 10 18:25:28 CET 2005


On Mon, 7 Mar 2005, Reimar Döffinger wrote:

> Hi,
> > Isn't adding a bunch of ifdefs into all code that uses mmap a lot more
> > intrusive than a configure test that just puts the code, when necessary, into
> > config.h?  Isn't that the point of config.h?
> 
> Well, it makes configure larger (which is already a really big monster)
> and unfortunately some code uses MAP_ANON and some use MAP_ANONYMOUS, so
> we would actually need two configure checks at the moment :-(

Are there any systems which define MAP_ANONYMOUS but not MAP_ANON?  It seems
like MAP_ANON was in the code for a while and no one had a problem.  Maybe the
one occurance of MAP_ANONYMOUS can be changed to match the two uses of
MAP_ANON, and then the whole problem goes away.




More information about the MPlayer-dev-eng mailing list