6 Mar
2005
6 Mar
'05
2:16 p.m.
Hi, On Tue, Feb 08, 2005 at 05:18:39PM -0800, Trent Piepho wrote:
A recent change to the configure script added this to config.h:
#define HAVE_SYS_MMAN_H 1
#ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif
MAP_ANONYMOUS is defined in sys/mman.h, which is only included if config.h defines HAVE_SYS_MMAN_H. Since config.h must be before sys/mman.h, MAP_ANONYMOUS will never be defined and the ifndef check is pointless. config.h will always define MAP_ANONYMOUS, which will be re-defined when sys/mman.h is included on systems that have MAP_ANONYMOUS (like Linux).
Fixed in a different way some time ago... Greetings, Reimar Döffinger