diff options
author | Simon McVittie <smcv@collabora.com> | 2022-03-02 13:08:46 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-04-21 11:02:44 +0100 |
commit | d3076161777f81128408bd512e3b369797dbd948 (patch) | |
tree | 7379ef780f6340288ad6fd9726a40b270e61f0f0 /cmake | |
parent | ee694ade6199932bc9e7ae40f7202c9426599c72 (diff) | |
download | dbus-d3076161777f81128408bd512e3b369797dbd948.tar.gz |
sysdeps: Include <linux/close_range.h> if available
This lets us use CLOSE_RANGE_CLOEXEC whenever the kernel headers
support it, even if glibc doesn't include this header via unistd.h yet.
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 f2ca64c7..735a4fe0 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -17,6 +17,7 @@ check_include_file(expat.h HAVE_EXPAT_H) check_include_file(grp.h HAVE_GRP_H) # dbus-sysdeps-util-win.c check_include_file(inttypes.h HAVE_INTTYPES_H) # dbus-pipe.h check_include_file(io.h HAVE_IO_H) # internal +check_include_file(linux/close_range.h HAVE_LINUX_CLOSE_RANGE_H) check_include_file(locale.h HAVE_LOCALE_H) check_include_file(memory.h HAVE_MEMORY_H) check_include_file(signal.h HAVE_SIGNAL_H) |