diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2025-04-01 00:53:07 +0200 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-15 00:50:26 +0200 |
commit | 120868e75c824063f8010d49d27221db41e3c6f3 (patch) | |
tree | 627084753906c85b6dccd234d483f6a2880e8c30 /example | |
parent | fe5f26a194355317e884ed20fe43c5546e40fabe (diff) | |
download | libfuse-120868e75c824063f8010d49d27221db41e3c6f3.tar.gz |
Fix build with kernel < 5.9
linux/close_range.h is only available since kernel 5.9 and
https://github.com/torvalds/linux/commit/60997c3d45d9a67daf01c56d805ae4fec37e0bd8
resulting in the following build failure:
../util/fusermount.c:40:10: fatal error: linux/close_range.h: No such file or directory
So let's check for header presence and emit HAVE_LINUX_CLOSE_RANGE_H
accordingly and check for it when including <linux/close_range.h> and
calling close_range() instead of checking for close_range() function in
meson and check against HAVE_CLOSE_RANGE.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions