9 Feb
2005
9 Feb
'05
1:18 a.m.
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). This patch makes configure only generate a define for MAP_ANONYMOUS if it's needed.