0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::fs: Indicate no write-life hint support while executing in valgrind.

This commit is contained in:
Jason Volk 2022-03-20 11:35:39 -07:00
parent 3b6a63b2c0
commit 317577d6eb

View file

@ -208,8 +208,9 @@ decltype(ircd::fs::support::rwh_write_life)
ircd::fs::support::rwh_write_life
{
#if defined(HAVE_FCNTL_H) && defined(F_SET_FILE_RW_HINT)
info::kernel_version[0] > 4 ||
(info::kernel_version[0] >= 4 && info::kernel_version[1] >= 13)
(info::kernel_version[0] > 4 ||
(info::kernel_version[0] >= 4 && info::kernel_version[1] >= 13))
&& !vg::active // not yet supported by valgrind
#else
false
#endif