Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29e14276 authored by Yabin Cui's avatar Yabin Cui Committed by Android Git Automerger
Browse files

am 26d2b64b: am 81906d4b: Merge "kill HAVE_MADVISE"

* commit '26d2b64b':
  kill HAVE_MADVISE
parents 8a902ae9 26d2b64b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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