xfs
[Top] [All Lists]

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

To: linux-xfs@xxxxxxxxxxx
Subject: Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared
From: Bernhard Erdmann <be@xxxxxxxxxxx>
Date: Sat, 31 Jul 2004 08:37:59 +0200
In-reply-to: <20040729054638.GK800@frodo>
References: <40FB2417.7030406@xxxxxxxxxxx> <4774.1090202489@xxxxxxxxxxxxxxxxxxxxxx> <20040720015826.A2406645@xxxxxxxxxxxxxxxxxxxxxxxx> <40FDFBF2.7020500@xxxxxxxxxxx> <20040729054638.GK800@frodo>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; IRIX64 IP30; en-US; rv:1.6) Gecko/20040505
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:

#define MADV_NORMAL     0x0             /* default page-in behavior */
#define MADV_RANDOM     0x1             /* page-in minimum required */
#define MADV_SEQUENTIAL 0x2             /* read-ahead aggressively */
#define MADV_WILLNEED   0x3             /* pre-fault pages */
#define MADV_DONTNEED   0x4             /* discard these pages */



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