diff options
author | Simon McVittie <smcv@collabora.com> | 2022-03-02 12:25:54 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-04-21 11:02:44 +0100 |
commit | ccea70515eb4a7644c1755b0ba8fd773e9c1871f (patch) | |
tree | d6cf1f625493849c785cecc40aa6fbbb5453fbdd /cmake | |
parent | d3076161777f81128408bd512e3b369797dbd948 (diff) | |
download | dbus-ccea70515eb4a7644c1755b0ba8fd773e9c1871f.tar.gz |
sysdeps: On Linux, wrap close_range syscall directly if necessary
This was added to the Linux kernel in version 5.9, but the wrapper
wasn't added to glibc until 2.34. Adding our own wrapper for the
system call means we can use close_range() on Debian 11 and
contemporary distributions.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ConfigureChecks.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 735a4fe0..ce8f4f9d 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -32,6 +32,7 @@ check_include_file(sys/inotify.h HAVE_SYS_INOTIFY_H) check_include_file(sys/random.h HAVE_SYS_RANDOM_H) check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H) check_include_file(sys/stat.h HAVE_SYS_STAT_H) +check_include_file(sys/syscall.h HAVE_SYS_SYSCALL_H) check_include_file(sys/types.h HAVE_SYS_TYPES_H) check_include_file(sys/uio.h HAVE_SYS_UIO_H) check_include_file(sys/prctl.h HAVE_SYS_PRCTL_H) |