10 Mar
2005
10 Mar
'05
8:25 p.m.
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.