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:
parent
1eaff2e91e
commit
4d3727a0a1
1 changed files with 24 additions and 8 deletions
32
ircd/fs.cc
32
ircd/fs.cc
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue