summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/ConfigureChecks.cmake1
-rw-r--r--configure.ac1
-rw-r--r--dbus/dbus-sysdeps-unix.c3
3 files changed, 5 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)
diff --git a/configure.ac b/configure.ac
index afe21813..eed8a787 100644
--- a/configure.ac
+++ b/configure.ac
@@ -420,6 +420,7 @@ byteswap.h
crt_externs.h
dirent.h
errno.h
+linux/close_range.h
locale.h
signal.h
stdint.h
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