Received: with ECARTIS (v1.0.0; list linux-xfs); Fri, 30 Jul 2004 23:38:09 -0700 (PDT) Received: from coredumps.de (coredumps.de [217.160.213.75]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i6V6c47R026791 for ; Fri, 30 Jul 2004 23:38:07 -0700 Received: from port-212-202-185-131.dynamic.qsc.de ([212.202.185.131] helo=ente.berdmann.de) by coredumps.de with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.33) id 1BqnVI-0005Yv-IE for linux-xfs@oss.sgi.com; Sat, 31 Jul 2004 08:38:00 +0200 Received: from octane.berdmann.de ([192.168.1.14] helo=berdmann.de) by ente.berdmann.de with esmtp (Exim 3.36 #1) id 1BqnVI-0005vN-00 for linux-xfs@oss.sgi.com; Sat, 31 Jul 2004 08:38:00 +0200 Message-ID: <410B3E47.2030806@berdmann.de> Date: Sat, 31 Jul 2004 08:37:59 +0200 From: Bernhard Erdmann User-Agent: Mozilla/5.0 (X11; U; IRIX64 IP30; en-US; rv:1.6) Gecko/20040505 X-Accept-Language: de, en, fr MIME-Version: 1.0 To: linux-xfs@oss.sgi.com Subject: Re: building xfsprogs (CVS): mmap.c:627: `MADV_NORMAL' undeclared References: <40FB2417.7030406@berdmann.de> <4774.1090202489@kao2.melbourne.sgi.com> <20040720015826.A2406645@wobbly.melbourne.sgi.com> <40FDFBF2.7020500@berdmann.de> <20040729054638.GK800@frodo> In-Reply-To: <20040729054638.GK800@frodo> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 3796 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: be@berdmann.de Precedence: bulk X-list: linux-xfs 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 */