xfs
[Top] [All Lists]

Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared

To: Bernhard Erdmann <be@xxxxxxxxxxx>
Subject: Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared
From: Nathan Scott <nathans@xxxxxxx>
Date: Mon, 2 Aug 2004 16:01:09 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <410B3E47.2030806@xxxxxxxxxxx>
References: <40FB2417.7030406@xxxxxxxxxxx> <4774.1090202489@xxxxxxxxxxxxxxxxxxxxxx> <20040720015826.A2406645@xxxxxxxxxxxxxxxxxxxxxxxx> <40FDFBF2.7020500@xxxxxxxxxxx> <20040729054638.GK800@frodo> <410B3E47.2030806@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Sat, Jul 31, 2004 at 08:37:59AM +0200, Bernhard Erdmann wrote:
> Nathan Scott wrote:
> 
> >Does your /usr/include/{bits,sys}/mman.h have those missing macros?
> >If so, what cpp macro is guarding them?  (mail me the file please)
> >If not, can you grep below /usr/include for them and let me know
> >which header defines them?  thanks.
> 
> Hi Nathan,
> 
> /usr/include/{bits,sys}/mman.h does not have a definition for 
> MADV_NORMAL. Instead, it is defined in /usr/include/asm/mman.h:

Does adding #include <asm/mman.h> (in xfsprogs/io/mmap.c) get
a working build for you or do you see subsequent errors too?

thanks.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>