mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 07:38:20 +02:00
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>
This commit is contained in:
parent
ee694ade61
commit
d307616177
3 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -420,6 +420,7 @@ byteswap.h
|
|||
crt_externs.h
|
||||
dirent.h
|
||||
errno.h
|
||||
linux/close_range.h
|
||||
locale.h
|
||||
signal.h
|
||||
stdint.h
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue