From 819b480b935a99fc8114b622644f42dec9e3a177 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Tue, 18 Nov 2014 18:15:40 -0800 Subject: kill HAVE_MADVISE Bug: 18397020 Change-Id: Ibc8d886d729c51932a403531888214de4e541452 --- libutils/FileMap.cpp | 4 ++-- 1 file 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 } -- cgit v1.1