Bug #488
madvise() is useless on Panther
| Status: | Fixed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - | |||
| Pending: | Resolution: | fixed |
||
Description
Calling madvise() with MADV_WILLNEED is useless on Mac OS X Panther, you'll always get an EINVAL.
From http://dovecot.darwinports.com/ :
# madvise fails on darwin 7 and earlier, but is fixed on darwin 8
if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } {
reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h
}
}
-- iclaymore