[MPlayer-dev-eng] man_anonymous
D Richard Felker III
dalias at aerifal.cx
Mon Mar 7 16:25:45 CET 2005
On Mon, Mar 07, 2005 at 11:55:15AM +0100, 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 :-(
Please remove both and put (void*)-1 wherever it's needed. This is
(always) the value of both constants and it eliminates the dependency
on stupid #defines that might be missing.
Rich
More information about the MPlayer-dev-eng
mailing list