diff options
author | Yabin Cui <yabinc@google.com> | 2014-11-19 03:17:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-19 03:17:46 +0000 |
commit | c8ad180983fb50c89179b7895896ad1f35cb885a (patch) | |
tree | a7d5fe7bc76b41c2225cb7ffafc52ec1884191cf | |
parent | 0655d38b0c998f294ad52f1f8e84233a48046e97 (diff) | |
parent | 819b480b935a99fc8114b622644f42dec9e3a177 (diff) | |
download | system_core-c8ad180983fb50c89179b7895896ad1f35cb885a.zip system_core-c8ad180983fb50c89179b7895896ad1f35cb885a.tar.gz system_core-c8ad180983fb50c89179b7895896ad1f35cb885a.tar.bz2 |
Merge "kill HAVE_MADVISE"
-rw-r--r-- | libutils/FileMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/FileMap.cpp b/libutils/FileMap.cpp index 6d92f74..71f00dc 100644 --- a/libutils/FileMap.cpp +++ b/libutils/FileMap.cpp @@ -196,7 +196,7 @@ try_again: // Provide guidance to the system. int FileMap::advise(MapAdvice advice) { -#if HAVE_MADVISE +#if !defined(_WIN32) int cc, sysAdvice; switch (advice) { @@ -216,5 +216,5 @@ int FileMap::advise(MapAdvice advice) return cc; #else return -1; -#endif // HAVE_MADVISE +#endif } |