On Mon, Jul 19, 2004 at 12:01:29PM +1000, Keith Owens wrote:
> On Mon, 19 Jul 2004 03:29:59 +0200,
> Bernhard Erdmann <be@xxxxxxxxxxx> wrote:
> >...
> >mmap.c: In function `madvise_f':
> >mmap.c:627: `MADV_NORMAL' undeclared (first use in this function)
> >mmap.c:627: (Each undeclared identifier is reported only once
> >mmap.c:627: for each function it appears in.)
> >mmap.c:633: `MADV_DONTNEED' undeclared (first use in this function)
> >mmap.c:636: `MADV_RANDOM' undeclared (first use in this function)
> >mmap.c:639: `MADV_SEQUENTIAL' undeclared (first use in this function)
> >mmap.c:642: `MADV_WILLNEED' undeclared (first use in this function)
> >mmap.c: In function `mincore_f':
> >mmap.c:729: warning: implicit declaration of function `mincore'
>
> All defined in mman.h. Try adding #include <sys/mman.h> after the
> other includes in mmap.c.
mmap.c already includes that header - what version of the glibc
headers are you using there Bernhard? (which distribution, and
which version?)
cheers.
--
Nathan
|