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 /dbus/dbus-sysdeps-unix.c | |
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 'dbus/dbus-sysdeps-unix.c')
-rw-r--r-- | dbus/dbus-sysdeps-unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index c3dd0b83..ced32063 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -63,6 +63,9 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif +#ifdef HAVE_LINUX_CLOSE_RANGE_H +#include <linux/close_range.h> +#endif #ifdef HAVE_SYSLOG_H #include <syslog.h> #endif |