Index: bsd-user/mmap.c =================================================================== --- bsd-user/mmap.c (revision 5799) +++ bsd-user/mmap.c (working copy) @@ -30,6 +30,10 @@ //#define DEBUG_MMAP +#ifndef MAP_FLAGMASK +#define MAP_FLAGMASK ~MAP_ALIGNMENT_MASK +#endif + #if defined(USE_NPTL) pthread_mutex_t mmap_mutex; static int __thread mmap_lock_count;