diff options
author | Bernd Schubert <bernd@bsbernd.com> | 2025-07-16 00:09:31 +0200 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-07-16 10:44:28 +0200 |
commit | 5f6d3be57f73c8b79e9b616b0f30464475116084 (patch) | |
tree | dfbefc85bf16a79229fb6996eab93e8b365372c7 /meson.build | |
parent | 194023c5999651386a3ddbf91fdd710d661d083b (diff) | |
download | libfuse-5f6d3be57f73c8b79e9b616b0f30464475116084.tar.gz |
fusermount: close_range seems to be available on bsd
According to https://man.freebsd.org/cgi/man.cgi?close_range(2)
we just need to remove the linux include.
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 64ff334..05ca1e7 100644 --- a/meson.build +++ b/meson.build @@ -98,7 +98,9 @@ special_funcs = { 'close_range': ''' #include <unistd.h> #include <fcntl.h> + #ifdef linux #include <linux/close_range.h> + #endif int main(void) { unsigned int flags = CLOSE_RANGE_UNSHARE; return close_range(3, ~0U, flags); |