|
From: Rich C. <rc...@wi...> - 2011-11-17 01:44:57
|
On Fri, 11 Nov 2011 15:13:10 +0100 Bart Van Assche <bva...@ac...> wrote: > On Wed, Nov 9, 2011 at 9:58 PM, Rich Coe <rc...@wi...> wrote: > > On Wed, 9 Nov 2011 17:31:55 +0000 (GMT) > > sv...@va... wrote: > >> Author: bart > >> Date: 2011-11-09 17:31:54 +0000 (Wed, 09 Nov 2011) > >> New Revision: 12263 > >> Modified: trunk/memcheck/tests/x86-linux/scalar.c > >> +#include <linux/mman.h> // MREMAP_FIXED > > > > Shouldn't this be #include <sys/mman.h> ??? > > > > linux/mman.h is the kernel's header file ... > > As far as I can see on RHEL 4 the definition of MREMAP_FIXED is > missing in the glibc header files and is only present in the kernel > header files. So either <linux/mman.h> has to be included or an > explicit definition of MREMAP_FIXED has to be provided. > Bart. How about ... #include <sys/mman.h> #ifndef MREMAP_FIXED /* not defined by RHEL 4 */ #include <linux/mman.h> #endif Rich -- Rich Coe rc...@wi... |