mirror of
https://github.com/matrix-construct/construct
synced 2024-06-10 22:18:54 +02:00
ircd::fs: Fix ifdef wrapping for symbol.
This commit is contained in:
parent
87cff29e53
commit
66f99f70c2
|
@ -1771,7 +1771,11 @@ ircd::fs::evict(const map &map,
|
|||
const size_t &len,
|
||||
const opts &opts)
|
||||
{
|
||||
return advise(map, POSIX_MADV_DONTNEED, len, opts);
|
||||
#if defined(POSIX_MADV_DONTNEED)
|
||||
return advise(map, POSIX_MADV_DONTNEED, len, opts);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(HAVE_MADVISE) && defined(__linux__)
|
||||
|
|
Loading…
Reference in a new issue