Bug #488

madvise() is useless on Panther

Added by Anonymous 1026 days ago. Updated 808 days ago.

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

History

01/31/2006 12:36 PM - jan

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r959

Also available in: Atom PDF