0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::fs: Condition various runtime support on compilation too.

This commit is contained in:
Jason Volk 2019-04-17 19:10:50 -07:00
parent 1eaff2e91e
commit 4d3727a0a1

View file

@ -46,29 +46,45 @@ ircd::fs::support_pwritev2
decltype(ircd::fs::support_sync)
ircd::fs::support_sync
{
info::kversion[0] >= 4 &&
info::kversion[1] >= 7
#if defined(HAVE_PWRITEV2) && defined(RWF_SYNC)
info::kversion[0] >= 4 &&
info::kversion[1] >= 7
#else
false
#endif
};
decltype(ircd::fs::support_dsync)
ircd::fs::support_dsync
{
info::kversion[0] >= 4 &&
info::kversion[1] >= 7
#if defined(HAVE_PWRITEV2) && defined(RWF_DSYNC)
info::kversion[0] >= 4 &&
info::kversion[1] >= 7
#else
false
#endif
};
decltype(ircd::fs::support_hipri)
ircd::fs::support_hipri
{
info::kversion[0] >= 4 &&
info::kversion[1] >= 6
#if defined(HAVE_PWRITEV2) && defined(RWF_HIPRI)
info::kversion[0] >= 4 &&
info::kversion[1] >= 6
#else
false
#endif
};
decltype(ircd::fs::support_nowait)
ircd::fs::support_nowait
{
info::kversion[0] >= 4 &&
info::kversion[1] >= 14
#if defined(HAVE_PWRITEV2) && defined(RWF_NOWAIT)
info::kversion[0] >= 4 &&
info::kversion[1] >= 14
#else
false
#endif
};
decltype(ircd::fs::support_append)