Merge "kill HAVE_MADVISE"

This commit is contained in:
Yabin Cui 2014-11-19 03:17:46 +00:00 committed by Gerrit Code Review
commit c8ad180983

View file

@ -196,7 +196,7 @@ try_again:
// Provide guidance to the system. // Provide guidance to the system.
int FileMap::advise(MapAdvice advice) int FileMap::advise(MapAdvice advice)
{ {
#if HAVE_MADVISE #if !defined(_WIN32)
int cc, sysAdvice; int cc, sysAdvice;
switch (advice) { switch (advice) {
@ -216,5 +216,5 @@ int FileMap::advise(MapAdvice advice)
return cc; return cc;
#else #else
return -1; return -1;
#endif // HAVE_MADVISE #endif
} }