Merge "kill HAVE_MADVISE"
This commit is contained in:
commit
c8ad180983
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue