Skip to content
Snippets Groups Projects
Commit 81906d4b authored by Yabin Cui's avatar Yabin Cui Committed by Gerrit Code Review
Browse files

Merge "kill HAVE_MADVISE"

parents c8ad1809 745c5f6a
No related branches found
No related tags found
No related merge requests found
......@@ -194,9 +194,9 @@ try_again:
}
// Provide guidance to the system.
#if !defined(_WIN32)
int FileMap::advise(MapAdvice advice)
{
#if !defined(_WIN32)
int cc, sysAdvice;
switch (advice) {
......@@ -214,7 +214,11 @@ int FileMap::advise(MapAdvice advice)
if (cc != 0)
ALOGW("madvise(%d) failed: %s\n", sysAdvice, strerror(errno));
return cc;
}
#else
int FileMap::advise(MapAdvice /* advice */)
{
return -1;
#endif
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment