0
0
Fork 0
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:
Jason Volk 2020-09-13 00:23:10 -07:00
parent 87cff29e53
commit 66f99f70c2

View file

@ -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__)